Ignore:
Timestamp:
2012/01/12 12:16:10 (12 years ago)
Author:
h_yoshimoto
Message:

#1603 プラグイン機能(エンジン部分)を作成しました。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/require_plugin.php

    r20764 r21395  
    2222 */ 
    2323 
    24 // load plugins 
    25 /* ----------------------------------------------------------------------------- 
    26  * TODO PHP4 でも使えるように, XML パーサーをファクトリークラスで実装する 
    27  * ----------------------------------------------------------------------------*/ 
    28 define('DEBUG_LOAD_PLUGIN', true); 
    29  
    30 if (version_compare("5", PHP_VERSION, "<")) { 
    31     $pluginsXml = SC_Utils_Ex::sfGetPluginsXml(); 
    32     foreach ($pluginsXml->plugin as $plugin) { 
    33         $requireFile = PLUGIN_REALDIR . "{$plugin->path}/require.php"; 
    34         if (file_exists($requireFile)) { 
    35             include_once $requireFile; 
    36         } 
    37     } 
    38  
    39     // Smarty に引き渡す目的 
    40     // FIXME スーパーグローバルを書き換える以外の方法に改める。(グローバル変数にセットして、Smrty 関数で読み出すなど) 
    41     $_ENV['pluginsXml'] = $pluginsXml; 
    42  
    43     // グローバル変数を掃除 
    44     unset($plugin); 
    45     unset($pluginsXml); 
    46 } 
     24    require_once (PLUGIN_REALDIR . 'SC_Plugin_Template_Transform_List.php'); 
     25    require_once (PLUGIN_REALDIR . 'SC_Plugin_Template_Transformer.php'); 
     26    require_once (PLUGIN_REALDIR . 'SC_Plugin_Template_Selector.php'); 
     27    require_once (DOWNLOADS_PLUGIN_REALDIR . 'SC_Plugin_Base.php'); 
     28//} 
    4729?> 
Note: See TracChangeset for help on using the changeset viewer.