1 
2 #ifdef HAVE_CONFIG_H
3 #include "../../ext_config.h"
4 #endif
5 
6 #include <php.h>
7 #include "../../php_ext.h"
8 #include "../../ext.h"
9 
10 #include <Zend/zend_exceptions.h>
11 
12 #include "kernel/main.h"
13 
14 
15 /**
16  * Phalcon\Translate\AdapterInterface
17  *
18  * Interface for Phalcon\Translate adapters
19  */
ZEPHIR_INIT_CLASS(Phalcon_Translate_AdapterInterface)20 ZEPHIR_INIT_CLASS(Phalcon_Translate_AdapterInterface) {
21 
22 	ZEPHIR_REGISTER_INTERFACE(Phalcon\\Translate, AdapterInterface, phalcon, translate_adapterinterface, phalcon_translate_adapterinterface_method_entry);
23 
24 	return SUCCESS;
25 
26 }
27 
28 /**
29  * Returns the translation string of the given key
30  *
31  * @param	string translateKey
32  * @param	array placeholders
33  * @return	string
34  */
35 ZEPHIR_DOC_METHOD(Phalcon_Translate_AdapterInterface, t);
36 
37 /**
38  * Returns the translation related to the given key
39  *
40  * @param	string index
41  * @param	array placeholders
42  * @return	string
43  */
44 ZEPHIR_DOC_METHOD(Phalcon_Translate_AdapterInterface, query);
45 
46 /**
47  * Check whether is defined a translation key in the internal array
48  */
49 ZEPHIR_DOC_METHOD(Phalcon_Translate_AdapterInterface, exists);
50 
51