Changeset 476

Show
Ignore:
Timestamp:
06/29/07 18:09:54 (2 years ago)
Author:
laurentj
Message:

worked on ticket #132 : renamed jIPlugin interface to jICoordPlugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/jelix-ext-php.mn

    r418 r476  
    3838  read_ini_003.phpt 
    3939  scan_module_sel_001.phpt 
    40   jiplugin_001.phpt 
     40  jicoordplugin_001.phpt 
    4141  jelix_const_001.phpt 
    42   jiplugin_002.phpt 
    43   jiplugin_003.phpt 
     42  jicoordplugin_002.phpt 
     43  jicoordplugin_003.phpt 
    4444  scan_module_sel_002.phpt 
    4545  scan_action_sel_001.phpt 
  • trunk/build/manifests/jelix-ext-php.mn

    r418 r476  
    3838  read_ini_003.phpt 
    3939  scan_module_sel_001.phpt 
    40   jiplugin_001.phpt 
     40  jicoordplugin_001.phpt 
    4141  jelix_const_001.phpt 
    42   jiplugin_002.phpt 
    43   jiplugin_003.phpt 
     42  jicoordplugin_002.phpt 
     43  jicoordplugin_003.phpt 
    4444  scan_module_sel_002.phpt 
    4545  scan_action_sel_001.phpt 
  • trunk/build/manifests/jelix-no-ext.mn

    r357 r476  
    11cd lib/jelix/core 
    2   jIPlugin.iface.php 
     2  jICoordPlugin.iface.php 
  • trunk/build/manifests/jelix-no-ext.mn

    r357 r476  
    11cd lib/jelix/core 
    2   jIPlugin.iface.php 
     2  jICoordPlugin.iface.php 
  • trunk/ext/jelix/jelix_interfaces.c

    r387 r476  
    2222 
    2323 
    24 PHPAPI zend_class_entry * jelix_ce_jIPlugin; 
     24PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 
    2525PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 
    2626PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; 
     
    3131 
    3232 
    33 // declaration des arguments aux méthodes 
    34  
    35 /* ------------------------------------- 
    36 interface jIPlugin{ 
     33 
     34/* ------------------------------------- 
     35interface jICoordPlugin{ 
    3736    public function beforeAction($param); 
    3837    public function beforeOutput(); 
     
    4241 
    4342static 
    44 ZEND_BEGIN_ARG_INFO_EX(arginfo_jIPlugin_beforeAction, 0, 0, 1) 
     43ZEND_BEGIN_ARG_INFO_EX(arginfo_jICoordPlugin_beforeAction, 0, 0, 1) 
    4544        ZEND_ARG_INFO(0, params) 
    4645ZEND_END_ARG_INFO(); 
    4746 
    4847 
    49 zend_function_entry zend_funcs_jIPlugin[] = { 
    50         ZEND_ABSTRACT_ME(jIPlugin, beforeAction, arginfo_jIPlugin_beforeAction) 
    51         ZEND_ABSTRACT_ME(jIPlugin, beforeOutput, NULL) 
    52         ZEND_ABSTRACT_ME(jIPlugin, afterProcess, NULL) 
     48zend_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) 
    5352        {NULL, NULL, NULL} 
    5453}; 
     
    232231        zend_class_entry _ce; 
    233232 
    234         JELIX_DECLARE_INTERFACE(jIPlugin) 
     233        JELIX_DECLARE_INTERFACE(jICoordPlugin) 
    235234        JELIX_DECLARE_INTERFACE(jIAuthDriver) 
    236235        JELIX_DECLARE_INTERFACE(jIUrlEngine) 
  • trunk/ext/jelix/jelix_interfaces.c

    r387 r476  
    2222 
    2323 
    24 PHPAPI zend_class_entry * jelix_ce_jIPlugin; 
     24PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 
    2525PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 
    2626PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; 
     
    3131 
    3232 
    33 // declaration des arguments aux méthodes 
    34  
    35 /* ------------------------------------- 
    36 interface jIPlugin{ 
     33 
     34/* ------------------------------------- 
     35interface jICoordPlugin{ 
    3736    public function beforeAction($param); 
    3837    public function beforeOutput(); 
     
    4241 
    4342static 
    44 ZEND_BEGIN_ARG_INFO_EX(arginfo_jIPlugin_beforeAction, 0, 0, 1) 
     43ZEND_BEGIN_ARG_INFO_EX(arginfo_jICoordPlugin_beforeAction, 0, 0, 1) 
    4544        ZEND_ARG_INFO(0, params) 
    4645ZEND_END_ARG_INFO(); 
    4746 
    4847 
    49 zend_function_entry zend_funcs_jIPlugin[] = { 
    50         ZEND_ABSTRACT_ME(jIPlugin, beforeAction, arginfo_jIPlugin_beforeAction) 
    51         ZEND_ABSTRACT_ME(jIPlugin, beforeOutput, NULL) 
    52         ZEND_ABSTRACT_ME(jIPlugin, afterProcess, NULL) 
     48zend_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) 
    5352        {NULL, NULL, NULL} 
    5453}; 
     
    232231        zend_class_entry _ce; 
    233232 
    234         JELIX_DECLARE_INTERFACE(jIPlugin) 
     233        JELIX_DECLARE_INTERFACE(jICoordPlugin) 
    235234        JELIX_DECLARE_INTERFACE(jIAuthDriver) 
    236235        JELIX_DECLARE_INTERFACE(jIUrlEngine) 
  • trunk/ext/jelix/jelix_interfaces.h

    r383 r476  
    1515 
    1616 
    17 extern PHPAPI zend_class_entry * jelix_ce_jIPlugin; 
     17extern PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 
    1818extern PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 
    1919extern PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; 
  • trunk/ext/jelix/jelix_interfaces.h

    r383 r476  
    1515 
    1616 
    17 extern PHPAPI zend_class_entry * jelix_ce_jIPlugin; 
     17extern PHPAPI zend_class_entry * jelix_ce_jICoordPlugin; 
    1818extern PHPAPI zend_class_entry * jelix_ce_jIAuthDriver; 
    1919extern PHPAPI zend_class_entry * jelix_ce_jIUrlEngine; 
  • trunk/ext/jelix/tests/jicoordplugin_001.phpt

    r383 r476  
    11--TEST-- 
    2 Check for jIPlugin interface 
     2Check for jICoordPlugin interface 
    33--SKIPIF-- 
    44<?php if (!extension_loaded("jelix")) print "skip"; ?> 
    55--FILE-- 
    66<?php  
    7 if(interface_exists('jIPlugin', false)) echo "YES"; else echo "NO"; 
     7if(interface_exists('jICoordPlugin', false)) echo "YES"; else echo "NO"; 
    88?> 
    99--EXPECT-- 
  • trunk/ext/jelix/tests/jicoordplugin_001.phpt

    r383 r476  
    11--TEST-- 
    2 Check for jIPlugin interface 
     2Check for jICoordPlugin interface 
    33--SKIPIF-- 
    44<?php if (!extension_loaded("jelix")) print "skip"; ?> 
    55--FILE-- 
    66<?php  
    7 if(interface_exists('jIPlugin', false)) echo "YES"; else echo "NO"; 
     7if(interface_exists('jICoordPlugin', false)) echo "YES"; else echo "NO"; 
    88?> 
    99--EXPECT-- 
  • trunk/ext/jelix/tests/jicoordplugin_002.phpt

    r383 r476  
    11--TEST-- 
    2 check reflection of jIPlugin interface 
     2check reflection of jICoordPlugin interface 
    33--SKIPIF-- 
    44<?php if (!extension_loaded("jelix")) print "skip"; ?> 
    55--FILE-- 
    66<?php  
    7 Reflection::export(new ReflectionClass('jIPlugin')); 
     7Reflection::export(new ReflectionClass('jICoordPlugin')); 
    88?> 
    99--EXPECT-- 
    10 Interface [ <internal:jelix> interface jIPlugin ] { 
     10Interface [ <internal:jelix> interface jICoordPlugin ] { 
    1111 
    1212  - Constants [0] { 
  • trunk/ext/jelix/tests/jicoordplugin_002.phpt

    r383 r476  
    11--TEST-- 
    2 check reflection of jIPlugin interface 
     2check reflection of jICoordPlugin interface 
    33--SKIPIF-- 
    44<?php if (!extension_loaded("jelix")) print "skip"; ?> 
    55--FILE-- 
    66<?php  
    7 Reflection::export(new ReflectionClass('jIPlugin')); 
     7Reflection::export(new ReflectionClass('jICoordPlugin')); 
    88?> 
    99--EXPECT-- 
    10 Interface [ <internal:jelix> interface jIPlugin ] { 
     10Interface [ <internal:jelix> interface jICoordPlugin ] { 
    1111 
    1212  - Constants [0] { 
  • trunk/ext/jelix/tests/jicoordplugin_003.phpt

    r383 r476  
    11--TEST-- 
    2 Use of jIPlugin interface 
     2Use of jICoordPlugin interface 
    33--SKIPIF-- 
    44<?php if (!extension_loaded("jelix")) print "skip"; ?> 
     
    66<?php  
    77 
    8 class myClass implements jIPlugin { 
     8class myClass implements jICoordPlugin { 
    99 
    1010        function beforeAction($param){ 
  • trunk/ext/jelix/tests/jicoordplugin_003.phpt

    r383 r476  
    11--TEST-- 
    2 Use of jIPlugin interface 
     2Use of jICoordPlugin interface 
    33--SKIPIF-- 
    44<?php if (!extension_loaded("jelix")) print "skip"; ?> 
     
    66<?php  
    77 
    8 class myClass implements jIPlugin { 
     8class myClass implements jICoordPlugin { 
    99 
    1010        function beforeAction($param){ 
  • trunk/lib/jelix-plugins/coord/auth/auth.plugin.php

    r455 r476  
    1818require_once(JELIX_LIB_AUTH_PATH.'jAuthUser.class.php'); 
    1919 
    20 class AuthPlugin implements jIPlugin { 
     20class AuthPlugin implements jICoordPlugin { 
    2121    public $config; 
    2222 
  • trunk/lib/jelix-plugins/coord/auth/auth.plugin.php

    r455 r476  
    1818require_once(JELIX_LIB_AUTH_PATH.'jAuthUser.class.php'); 
    1919 
    20 class AuthPlugin implements jIPlugin { 
     20class AuthPlugin implements jICoordPlugin { 
    2121    public $config; 
    2222 
  • trunk/lib/jelix-plugins/coord/autolocale/autolocale.plugin.php

    r444 r476  
    1111 * plugin for language auto detection 
    1212 */ 
    13 class AutoLocalePlugin implements jIPlugin { 
     13class AutoLocalePlugin implements jICoordPlugin { 
    1414 
    1515    public $config; 
  • trunk/lib/jelix-plugins/coord/autolocale/autolocale.plugin.php

    r444 r476  
    1111 * plugin for language auto detection 
    1212 */ 
    13 class AutoLocalePlugin implements jIPlugin { 
     13class AutoLocalePlugin implements jICoordPlugin { 
    1414 
    1515    public $config; 
  • trunk/lib/jelix-plugins/coord/magicquotes/magicquotes.plugin.php

    r386 r476  
    2121 * @subpackage plugins 
    2222 */ 
    23 class MagicQuotesPlugin implements jIPlugin { 
     23class MagicQuotesPlugin implements jICoordPlugin { 
    2424 
    2525    /** 
  • trunk/lib/jelix-plugins/coord/magicquotes/magicquotes.plugin.php

    r386 r476  
    2121 * @subpackage plugins 
    2222 */ 
    23 class MagicQuotesPlugin implements jIPlugin { 
     23class MagicQuotesPlugin implements jICoordPlugin { 
    2424 
    2525    /** 
  • trunk/lib/jelix/core/jCoordinator.class.php

    r474 r476  
    286286    * @param string   $pluginName   the name of the plugin 
    287287    * @param boolean  $required  says if the plugin is required or not. If true, will generate an exception if the plugin is not registered. 
    288     * @return jIPlugin 
     288    * @return jICoordPlugin 
    289289    */ 
    290290    public function getPlugin ($pluginName, $required = true){ 
  • trunk/lib/jelix/core/jCoordinator.class.php

    r474 r476  
    286286    * @param string   $pluginName   the name of the plugin 
    287287    * @param boolean  $required  says if the plugin is required or not. If true, will generate an exception if the plugin is not registered. 
    288     * @return jIPlugin 
     288    * @return jICoordPlugin 
    289289    */ 
    290290    public function getPlugin ($pluginName, $required = true){ 
  • trunk/lib/jelix/core/jICoordPlugin.iface.php

    r334 r476  
    1616* @subpackage core 
    1717*/ 
    18 interface jIPlugin { 
     18interface jICoordPlugin { 
    1919 
    2020    /** 
  • trunk/lib/jelix/core/jICoordPlugin.iface.php

    r334 r476  
    1616* @subpackage core 
    1717*/ 
    18 interface jIPlugin { 
     18interface jICoordPlugin { 
    1919 
    2020    /** 
  • trunk/lib/jelix/init.php

    r472 r476  
    9191#includephp core/jIncluder.class.php 
    9292#ifnot ENABLE_PHP_JELIX 
    93 #includephp core/jIPlugin.iface.php 
     93#includephp core/jICoordPlugin.iface.php 
    9494#endif 
    9595#else 
     
    109109require_once (JELIX_LIB_CORE_PATH . 'jIncluder.class.php'); 
    110110#ifnot ENABLE_PHP_JELIX 
    111 require_once (JELIX_LIB_CORE_PATH . 'jIPlugin.iface.php'); 
     111require_once (JELIX_LIB_CORE_PATH . 'jICoordPlugin.iface.php'); 
    112112#endif 
    113113#endif 
  • trunk/lib/jelix/init.php

    r472 r476  
    9191#includephp core/jIncluder.class.php 
    9292#ifnot ENABLE_PHP_JELIX 
    93 #includephp core/jIPlugin.iface.php 
     93#includephp core/jICoordPlugin.iface.php 
    9494#endif 
    9595#else 
     
    109109require_once (JELIX_LIB_CORE_PATH . 'jIncluder.class.php'); 
    110110#ifnot ENABLE_PHP_JELIX 
    111 require_once (JELIX_LIB_CORE_PATH . 'jIPlugin.iface.php'); 
     111require_once (JELIX_LIB_CORE_PATH . 'jICoordPlugin.iface.php'); 
    112112#endif 
    113113#endif 
Download in other formats: Unified Diff Zip Archive