Changeset 476 for trunk/ext
- Timestamp:
- 06/29/07 18:09:54 (2 years ago)
- Files:
-
- trunk/ext/jelix/jelix_interfaces.c (modified) (4 diffs)
- trunk/ext/jelix/jelix_interfaces.c (modified) (4 diffs)
- trunk/ext/jelix/jelix_interfaces.h (modified) (1 diff)
- trunk/ext/jelix/jelix_interfaces.h (modified) (1 diff)
- trunk/ext/jelix/tests/jicoordplugin_001.phpt (moved) (moved from trunk/ext/jelix/tests/jiplugin_001.phpt) (1 diff)
- trunk/ext/jelix/tests/jicoordplugin_001.phpt (moved) (moved from trunk/ext/jelix/tests/jiplugin_001.phpt) (1 diff)
- trunk/ext/jelix/tests/jicoordplugin_002.phpt (moved) (moved from trunk/ext/jelix/tests/jiplugin_002.phpt) (1 diff)
- trunk/ext/jelix/tests/jicoordplugin_002.phpt (moved) (moved from trunk/ext/jelix/tests/jiplugin_002.phpt) (1 diff)
- trunk/ext/jelix/tests/jicoordplugin_003.phpt (moved) (moved from trunk/ext/jelix/tests/jiplugin_003.phpt) (2 diffs)
- trunk/ext/jelix/tests/jicoordplugin_003.phpt (moved) (moved from trunk/ext/jelix/tests/jiplugin_003.phpt) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ext/jelix/jelix_interfaces.c
r387 r476 22 22 23 23 24 PHPAPI zend_class_entry * jelix_ce_jI Plugin;24 PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 25 25 PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 26 26 PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; … … 31 31 32 32 33 // declaration des arguments aux méthodes 34 35 /* ------------------------------------- 36 interface jIPlugin{ 33 34 /* ------------------------------------- 35 interface jICoordPlugin{ 37 36 public function beforeAction($param); 38 37 public function beforeOutput(); … … 42 41 43 42 static 44 ZEND_BEGIN_ARG_INFO_EX(arginfo_jI Plugin_beforeAction, 0, 0, 1)43 ZEND_BEGIN_ARG_INFO_EX(arginfo_jICoordPlugin_beforeAction, 0, 0, 1) 45 44 ZEND_ARG_INFO(0, params) 46 45 ZEND_END_ARG_INFO(); 47 46 48 47 49 zend_function_entry zend_funcs_jI Plugin[] = {50 ZEND_ABSTRACT_ME(jI Plugin, beforeAction, arginfo_jIPlugin_beforeAction)51 ZEND_ABSTRACT_ME(jI Plugin, beforeOutput, NULL)52 ZEND_ABSTRACT_ME(jI Plugin, afterProcess, NULL)48 zend_function_entry zend_funcs_jICoordPlugin[] = { 49 ZEND_ABSTRACT_ME(jICoordPlugin, beforeAction, arginfo_jICoordPlugin_beforeAction) 50 ZEND_ABSTRACT_ME(jICoordPlugin, beforeOutput, NULL) 51 ZEND_ABSTRACT_ME(jICoordPlugin, afterProcess, NULL) 53 52 {NULL, NULL, NULL} 54 53 }; … … 232 231 zend_class_entry _ce; 233 232 234 JELIX_DECLARE_INTERFACE(jI Plugin)233 JELIX_DECLARE_INTERFACE(jICoordPlugin) 235 234 JELIX_DECLARE_INTERFACE(jIAuthDriver) 236 235 JELIX_DECLARE_INTERFACE(jIUrlEngine) trunk/ext/jelix/jelix_interfaces.c
r387 r476 22 22 23 23 24 PHPAPI zend_class_entry * jelix_ce_jI Plugin;24 PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 25 25 PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 26 26 PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; … … 31 31 32 32 33 // declaration des arguments aux méthodes 34 35 /* ------------------------------------- 36 interface jIPlugin{ 33 34 /* ------------------------------------- 35 interface jICoordPlugin{ 37 36 public function beforeAction($param); 38 37 public function beforeOutput(); … … 42 41 43 42 static 44 ZEND_BEGIN_ARG_INFO_EX(arginfo_jI Plugin_beforeAction, 0, 0, 1)43 ZEND_BEGIN_ARG_INFO_EX(arginfo_jICoordPlugin_beforeAction, 0, 0, 1) 45 44 ZEND_ARG_INFO(0, params) 46 45 ZEND_END_ARG_INFO(); 47 46 48 47 49 zend_function_entry zend_funcs_jI Plugin[] = {50 ZEND_ABSTRACT_ME(jI Plugin, beforeAction, arginfo_jIPlugin_beforeAction)51 ZEND_ABSTRACT_ME(jI Plugin, beforeOutput, NULL)52 ZEND_ABSTRACT_ME(jI Plugin, afterProcess, NULL)48 zend_function_entry zend_funcs_jICoordPlugin[] = { 49 ZEND_ABSTRACT_ME(jICoordPlugin, beforeAction, arginfo_jICoordPlugin_beforeAction) 50 ZEND_ABSTRACT_ME(jICoordPlugin, beforeOutput, NULL) 51 ZEND_ABSTRACT_ME(jICoordPlugin, afterProcess, NULL) 53 52 {NULL, NULL, NULL} 54 53 }; … … 232 231 zend_class_entry _ce; 233 232 234 JELIX_DECLARE_INTERFACE(jI Plugin)233 JELIX_DECLARE_INTERFACE(jICoordPlugin) 235 234 JELIX_DECLARE_INTERFACE(jIAuthDriver) 236 235 JELIX_DECLARE_INTERFACE(jIUrlEngine) trunk/ext/jelix/jelix_interfaces.h
r383 r476 15 15 16 16 17 extern PHPAPI zend_class_entry * jelix_ce_jI Plugin;17 extern PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 18 18 extern PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 19 19 extern PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; trunk/ext/jelix/jelix_interfaces.h
r383 r476 15 15 16 16 17 extern PHPAPI zend_class_entry * jelix_ce_jI Plugin;17 extern PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 18 18 extern PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 19 19 extern PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; trunk/ext/jelix/tests/jicoordplugin_001.phpt
r383 r476 1 1 --TEST-- 2 Check for jI Plugin interface2 Check for jICoordPlugin interface 3 3 --SKIPIF-- 4 4 <?php if (!extension_loaded("jelix")) print "skip"; ?> 5 5 --FILE-- 6 6 <?php 7 if(interface_exists('jI Plugin', false)) echo "YES"; else echo "NO";7 if(interface_exists('jICoordPlugin', false)) echo "YES"; else echo "NO"; 8 8 ?> 9 9 --EXPECT-- trunk/ext/jelix/tests/jicoordplugin_001.phpt
r383 r476 1 1 --TEST-- 2 Check for jI Plugin interface2 Check for jICoordPlugin interface 3 3 --SKIPIF-- 4 4 <?php if (!extension_loaded("jelix")) print "skip"; ?> 5 5 --FILE-- 6 6 <?php 7 if(interface_exists('jI Plugin', false)) echo "YES"; else echo "NO";7 if(interface_exists('jICoordPlugin', false)) echo "YES"; else echo "NO"; 8 8 ?> 9 9 --EXPECT-- trunk/ext/jelix/tests/jicoordplugin_002.phpt
r383 r476 1 1 --TEST-- 2 check reflection of jI Plugin interface2 check reflection of jICoordPlugin interface 3 3 --SKIPIF-- 4 4 <?php if (!extension_loaded("jelix")) print "skip"; ?> 5 5 --FILE-- 6 6 <?php 7 Reflection::export(new ReflectionClass('jI Plugin'));7 Reflection::export(new ReflectionClass('jICoordPlugin')); 8 8 ?> 9 9 --EXPECT-- 10 Interface [ <internal:jelix> interface jI Plugin ] {10 Interface [ <internal:jelix> interface jICoordPlugin ] { 11 11 12 12 - Constants [0] { trunk/ext/jelix/tests/jicoordplugin_002.phpt
r383 r476 1 1 --TEST-- 2 check reflection of jI Plugin interface2 check reflection of jICoordPlugin interface 3 3 --SKIPIF-- 4 4 <?php if (!extension_loaded("jelix")) print "skip"; ?> 5 5 --FILE-- 6 6 <?php 7 Reflection::export(new ReflectionClass('jI Plugin'));7 Reflection::export(new ReflectionClass('jICoordPlugin')); 8 8 ?> 9 9 --EXPECT-- 10 Interface [ <internal:jelix> interface jI Plugin ] {10 Interface [ <internal:jelix> interface jICoordPlugin ] { 11 11 12 12 - Constants [0] { trunk/ext/jelix/tests/jicoordplugin_003.phpt
r383 r476 1 1 --TEST-- 2 Use of jI Plugin interface2 Use of jICoordPlugin interface 3 3 --SKIPIF-- 4 4 <?php if (!extension_loaded("jelix")) print "skip"; ?> … … 6 6 <?php 7 7 8 class myClass implements jI Plugin {8 class myClass implements jICoordPlugin { 9 9 10 10 function beforeAction($param){ trunk/ext/jelix/tests/jicoordplugin_003.phpt
r383 r476 1 1 --TEST-- 2 Use of jI Plugin interface2 Use of jICoordPlugin interface 3 3 --SKIPIF-- 4 4 <?php if (!extension_loaded("jelix")) print "skip"; ?> … … 6 6 <?php 7 7 8 class myClass implements jI Plugin {8 class myClass implements jICoordPlugin { 9 9 10 10 function beforeAction($param){
