From 14a9ab6851ccae21503c627a9ec744695967a10f Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Tue, 2 Jul 2019 00:03:48 -0400 Subject: [PATCH] [#14213] - Removed not needed ext files --- ext/phalcon/mvc/view/engine.zep.c | 147 --------------------- ext/phalcon/mvc/view/engine.zep.h | 49 ------- ext/phalcon/mvc/view/engineinterface.zep.c | 50 ------- ext/phalcon/mvc/view/engineinterface.zep.h | 45 ------- 4 files changed, 291 deletions(-) delete mode 100644 ext/phalcon/mvc/view/engine.zep.c delete mode 100644 ext/phalcon/mvc/view/engine.zep.h delete mode 100644 ext/phalcon/mvc/view/engineinterface.zep.c delete mode 100644 ext/phalcon/mvc/view/engineinterface.zep.h diff --git a/ext/phalcon/mvc/view/engine.zep.c b/ext/phalcon/mvc/view/engine.zep.c deleted file mode 100644 index 81e836c396f..00000000000 --- a/ext/phalcon/mvc/view/engine.zep.c +++ /dev/null @@ -1,147 +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/fcall.h" -#include "ext/spl/spl_exceptions.h" -#include "kernel/exception.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. - */ -/** - * Phalcon\Mvc\View\Engine - * - * All the template engine adapters must inherit this class. This provides - * basic interfacing between the engine and the Phalcon\Mvc\View component. - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_View_Engine) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Mvc\\View, Engine, phalcon, mvc_view_engine, phalcon_di_injectable_ce, phalcon_mvc_view_engine_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - zend_declare_property_null(phalcon_mvc_view_engine_ce, SL("view"), ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_class_implements(phalcon_mvc_view_engine_ce TSRMLS_CC, 1, phalcon_mvc_view_engineinterface_ce); - return SUCCESS; - -} - -/** - * Phalcon\Mvc\View\Engine constructor - */ -PHP_METHOD(Phalcon_Mvc_View_Engine, __construct) { - - zval *view, view_sub, *container = NULL, container_sub, __$null; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&view_sub); - ZVAL_UNDEF(&container_sub); - ZVAL_NULL(&__$null); - - zephir_fetch_params(0, 1, 1, &view, &container); - - if (!container) { - container = &container_sub; - container = &__$null; - } - - - zephir_update_property_zval(this_ptr, SL("view"), view); - zephir_update_property_zval(this_ptr, SL("container"), container); - -} - -/** - * Returns cached output on another view stage - */ -PHP_METHOD(Phalcon_Mvc_View_Engine, getContent) { - - zval _0; - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - - zephir_read_property(&_0, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&_0, "getcontent", NULL, 0); - zephir_check_call_status(); - RETURN_MM(); - -} - -/** - * Returns the view component related to the adapter - */ -PHP_METHOD(Phalcon_Mvc_View_Engine, getView) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "view"); - -} - -/** - * Renders a partial inside another view - * - * @param array params - */ -PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *partialPath_param = NULL, *params = NULL, params_sub, __$null, _0; - zval partialPath; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&partialPath); - ZVAL_UNDEF(¶ms_sub); - ZVAL_NULL(&__$null); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - - if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be of the type string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { - zephir_get_strval(&partialPath, partialPath_param); - } else { - ZEPHIR_INIT_VAR(&partialPath); - ZVAL_EMPTY_STRING(&partialPath); - } - if (!params) { - params = ¶ms_sub; - params = &__$null; - } - - - zephir_read_property(&_0, this_ptr, SL("view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_METHOD(&_0, "partial", NULL, 0, &partialPath, params); - zephir_check_call_status(); - RETURN_MM(); - -} - diff --git a/ext/phalcon/mvc/view/engine.zep.h b/ext/phalcon/mvc/view/engine.zep.h deleted file mode 100644 index 6fbd80a2692..00000000000 --- a/ext/phalcon/mvc/view/engine.zep.h +++ /dev/null @@ -1,49 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_view_engine_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_View_Engine); - -PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); -PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); -PHP_METHOD(Phalcon_Mvc_View_Engine, getView); -PHP_METHOD(Phalcon_Mvc_View_Engine, partial); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, view, Phalcon\\Mvc\\ViewBaseInterface, 0) - ZEND_ARG_OBJ_INFO(0, container, Phalcon\\DiInterface, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engine_getcontent, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engine_getcontent, 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_view_engine_getview, 0, 0, Phalcon\\Mvc\\ViewBaseInterface, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engine_getview, 0, 0, IS_OBJECT, "Phalcon\\Mvc\\ViewBaseInterface", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 1, IS_STRING, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, partialPath, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, partialPath) -#endif - ZEND_ARG_INFO(0, params) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_view_engine_method_entry) { - PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View_Engine, getContent, arginfo_phalcon_mvc_view_engine_getcontent, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, getView, arginfo_phalcon_mvc_view_engine_getview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/phalcon/mvc/view/engineinterface.zep.c b/ext/phalcon/mvc/view/engineinterface.zep.c deleted file mode 100644 index 07dae2402a3..00000000000 --- a/ext/phalcon/mvc/view/engineinterface.zep.c +++ /dev/null @@ -1,50 +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\View\EngineInterface - * - * Interface for Phalcon\Mvc\View engine adapters - */ -ZEPHIR_INIT_CLASS(Phalcon_Mvc_View_EngineInterface) { - - ZEPHIR_REGISTER_INTERFACE(Phalcon\\Mvc\\View, EngineInterface, phalcon, mvc_view_engineinterface, phalcon_mvc_view_engineinterface_method_entry); - - return SUCCESS; - -} - -/** - * Returns cached output on another view stage - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_View_EngineInterface, getContent); - -/** - * Renders a partial inside another view - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_View_EngineInterface, partial); - -/** - * Renders a view using the template engine - */ -ZEPHIR_DOC_METHOD(Phalcon_Mvc_View_EngineInterface, render); - diff --git a/ext/phalcon/mvc/view/engineinterface.zep.h b/ext/phalcon/mvc/view/engineinterface.zep.h deleted file mode 100644 index 91920733227..00000000000 --- a/ext/phalcon/mvc/view/engineinterface.zep.h +++ /dev/null @@ -1,45 +0,0 @@ - -extern zend_class_entry *phalcon_mvc_view_engineinterface_ce; - -ZEPHIR_INIT_CLASS(Phalcon_Mvc_View_EngineInterface); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engineinterface_getcontent, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engineinterface_getcontent, 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_view_engineinterface_partial, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_view_engineinterface_partial, 0, 1, IS_STRING, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, partialPath, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, partialPath) -#endif - ZEND_ARG_INFO(0, params) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engineinterface_render, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, path) -#endif - ZEND_ARG_INFO(0, params) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, mustClean, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, mustClean) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(phalcon_mvc_view_engineinterface_method_entry) { - PHP_ABSTRACT_ME(Phalcon_Mvc_View_EngineInterface, getContent, arginfo_phalcon_mvc_view_engineinterface_getcontent) - PHP_ABSTRACT_ME(Phalcon_Mvc_View_EngineInterface, partial, arginfo_phalcon_mvc_view_engineinterface_partial) - PHP_ABSTRACT_ME(Phalcon_Mvc_View_EngineInterface, render, arginfo_phalcon_mvc_view_engineinterface_render) - PHP_FE_END -};