
extern zend_class_entry *leevel_mvc_controller_ce;

ZEPHIR_INIT_CLASS(Leevel_Mvc_Controller);

PHP_METHOD(Leevel_Mvc_Controller, __construct);
PHP_METHOD(Leevel_Mvc_Controller, setView);
PHP_METHOD(Leevel_Mvc_Controller, switchView);
PHP_METHOD(Leevel_Mvc_Controller, assign);
PHP_METHOD(Leevel_Mvc_Controller, getAssign);
PHP_METHOD(Leevel_Mvc_Controller, deleteAssign);
PHP_METHOD(Leevel_Mvc_Controller, clearAssign);
PHP_METHOD(Leevel_Mvc_Controller, display);
PHP_METHOD(Leevel_Mvc_Controller, checkView);

ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_mvc_controller_setview, 0, 0, 1)
	ZEND_ARG_OBJ_INFO(0, view, Leevel\\Mvc\\IView, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_mvc_controller_switchview, 0, 0, 1)
	ZEND_ARG_OBJ_INFO(0, theme, Leevel\\View\\IView, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_mvc_controller_assign, 0, 0, 1)
	ZEND_ARG_INFO(0, name)
	ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_mvc_controller_getassign, 0, 0, 0)
	ZEND_ARG_INFO(0, name)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_mvc_controller_deleteassign, 0, 0, 1)
	ZEND_ARG_ARRAY_INFO(0, name, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_leevel_mvc_controller_display, 0, 0, 1)
	ZEND_ARG_INFO(0, file)
	ZEND_ARG_ARRAY_INFO(0, vars, 1)
	ZEND_ARG_INFO(0, ext)
ZEND_END_ARG_INFO()

ZEPHIR_INIT_FUNCS(leevel_mvc_controller_method_entry) {
	PHP_ME(Leevel_Mvc_Controller, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
	PHP_ME(Leevel_Mvc_Controller, setView, arginfo_leevel_mvc_controller_setview, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, switchView, arginfo_leevel_mvc_controller_switchview, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, assign, arginfo_leevel_mvc_controller_assign, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, getAssign, arginfo_leevel_mvc_controller_getassign, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, deleteAssign, arginfo_leevel_mvc_controller_deleteassign, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, clearAssign, NULL, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, display, arginfo_leevel_mvc_controller_display, ZEND_ACC_PUBLIC)
	PHP_ME(Leevel_Mvc_Controller, checkView, NULL, ZEND_ACC_PROTECTED)
	PHP_FE_END
};
