
extern zend_class_entry *phalcon_html_escaper_ce;

ZEPHIR_INIT_CLASS(Phalcon_Html_Escaper);

PHP_METHOD(Phalcon_Html_Escaper, __construct);
PHP_METHOD(Phalcon_Html_Escaper, attributes);
PHP_METHOD(Phalcon_Html_Escaper, css);
PHP_METHOD(Phalcon_Html_Escaper, detectEncoding);
PHP_METHOD(Phalcon_Html_Escaper, escapeCss);
PHP_METHOD(Phalcon_Html_Escaper, escapeHtml);
PHP_METHOD(Phalcon_Html_Escaper, escapeHtmlAttr);
PHP_METHOD(Phalcon_Html_Escaper, escapeJs);
PHP_METHOD(Phalcon_Html_Escaper, escapeUrl);
PHP_METHOD(Phalcon_Html_Escaper, getAttributeEscaper);
PHP_METHOD(Phalcon_Html_Escaper, getCssEscaper);
PHP_METHOD(Phalcon_Html_Escaper, getEncoding);
PHP_METHOD(Phalcon_Html_Escaper, getFlags);
PHP_METHOD(Phalcon_Html_Escaper, getHtmlEscaper);
PHP_METHOD(Phalcon_Html_Escaper, getJsEscaper);
PHP_METHOD(Phalcon_Html_Escaper, getUrlEscaper);
PHP_METHOD(Phalcon_Html_Escaper, html);
PHP_METHOD(Phalcon_Html_Escaper, js);
PHP_METHOD(Phalcon_Html_Escaper, normalizeEncoding);
PHP_METHOD(Phalcon_Html_Escaper, setAttributeEscaper);
PHP_METHOD(Phalcon_Html_Escaper, setCssEscaper);
PHP_METHOD(Phalcon_Html_Escaper, setDoubleEncode);
PHP_METHOD(Phalcon_Html_Escaper, setEncoding);
PHP_METHOD(Phalcon_Html_Escaper, setFlags);
PHP_METHOD(Phalcon_Html_Escaper, setHtmlEscaper);
PHP_METHOD(Phalcon_Html_Escaper, setHtmlQuoteType);
PHP_METHOD(Phalcon_Html_Escaper, setJsEscaper);
PHP_METHOD(Phalcon_Html_Escaper, setUrlEscaper);
PHP_METHOD(Phalcon_Html_Escaper, url);

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_html_escaper___construct, 0, 0, 0)
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "'utf-8'")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "11")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, doubleEncode, _IS_BOOL, 0, "true")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_attributes, 0, 0, IS_STRING, 0)
	ZEND_ARG_INFO(0, input)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_css, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_detectencoding, 0, 1, IS_STRING, 1)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_escapecss, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_escapehtml, 0, 0, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, input, IS_STRING, 1, "null")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_escapehtmlattr, 0, 0, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, input, IS_STRING, 1, "null")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_escapejs, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_escapeurl, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_escaper_getattributeescaper, 0, 0, Phalcon\\Html\\Escaper\\AttributeEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_escaper_getcssescaper, 0, 0, Phalcon\\Html\\Escaper\\CssEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_getencoding, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_getflags, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_escaper_gethtmlescaper, 0, 0, Phalcon\\Html\\Escaper\\HtmlEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_escaper_getjsescaper, 0, 0, Phalcon\\Html\\Escaper\\JsEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_html_escaper_geturlescaper, 0, 0, Phalcon\\Html\\Escaper\\UrlEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_html, 0, 0, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, input, IS_STRING, 1, "null")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_js, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_normalizeencoding, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_setattributeescaper, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Html\\Escaper\\AttributeEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_setcssescaper, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Html\\Escaper\\CssEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_setdoubleencode, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_TYPE_INFO(0, doubleEncode, _IS_BOOL, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_setencoding, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_setflags, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_sethtmlescaper, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Html\\Escaper\\HtmlEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_sethtmlquotetype, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_setjsescaper, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Html\\Escaper\\JsEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phalcon_html_escaper_seturlescaper, 0, 1, MAY_BE_STATIC)
	ZEND_ARG_OBJ_INFO(0, escaper, Phalcon\\Html\\Escaper\\UrlEscaper, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_html_escaper_url, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEPHIR_INIT_FUNCS(phalcon_html_escaper_method_entry) {
	PHP_ME(Phalcon_Html_Escaper, __construct, arginfo_phalcon_html_escaper___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
	PHP_ME(Phalcon_Html_Escaper, attributes, arginfo_phalcon_html_escaper_attributes, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, css, arginfo_phalcon_html_escaper_css, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, detectEncoding, arginfo_phalcon_html_escaper_detectencoding, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, escapeCss, arginfo_phalcon_html_escaper_escapecss, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, escapeHtml, arginfo_phalcon_html_escaper_escapehtml, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, escapeHtmlAttr, arginfo_phalcon_html_escaper_escapehtmlattr, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, escapeJs, arginfo_phalcon_html_escaper_escapejs, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, escapeUrl, arginfo_phalcon_html_escaper_escapeurl, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getAttributeEscaper, arginfo_phalcon_html_escaper_getattributeescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getCssEscaper, arginfo_phalcon_html_escaper_getcssescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getEncoding, arginfo_phalcon_html_escaper_getencoding, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getFlags, arginfo_phalcon_html_escaper_getflags, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getHtmlEscaper, arginfo_phalcon_html_escaper_gethtmlescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getJsEscaper, arginfo_phalcon_html_escaper_getjsescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, getUrlEscaper, arginfo_phalcon_html_escaper_geturlescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, html, arginfo_phalcon_html_escaper_html, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, js, arginfo_phalcon_html_escaper_js, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, normalizeEncoding, arginfo_phalcon_html_escaper_normalizeencoding, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setAttributeEscaper, arginfo_phalcon_html_escaper_setattributeescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setCssEscaper, arginfo_phalcon_html_escaper_setcssescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setDoubleEncode, arginfo_phalcon_html_escaper_setdoubleencode, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setEncoding, arginfo_phalcon_html_escaper_setencoding, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setFlags, arginfo_phalcon_html_escaper_setflags, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setHtmlEscaper, arginfo_phalcon_html_escaper_sethtmlescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setHtmlQuoteType, arginfo_phalcon_html_escaper_sethtmlquotetype, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setJsEscaper, arginfo_phalcon_html_escaper_setjsescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, setUrlEscaper, arginfo_phalcon_html_escaper_seturlescaper, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Html_Escaper, url, arginfo_phalcon_html_escaper_url, ZEND_ACC_PUBLIC)
	PHP_FE_END
};
