- Timestamp:
- 2012/04/27 12:17:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/plugin/SC_Plugin_Base.php
r21785 r21794 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-201 1LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 33 33 abstract class SC_Plugin_Base { 34 34 35 var$arrSelfInfo;35 protected $arrSelfInfo; 36 36 37 37 /** … … 83 83 */ 84 84 abstract function disable($arrPlugin); 85 86 /** 87 * プラグインヘルパーへ, コールバックメソッドを登録します. 88 * 89 * @param object $objPluginHelper 90 * @param integer $priority 91 */ 92 function register(SC_Helper_Plugin $objHelperPlugin, $priority) { 93 if (isset($this->arrSelfInfo['plugin_hook_point'])) { 94 $arrHookPoints = $this->arrSelfInfo['plugin_hook_point']; 95 foreach ($arrHookPoints as $hook_point) { 96 if (isset($hook_point['callback'])) { 97 $hook_point_name = $hook_point['hook_point']; 98 $callback_name = $hook_point['callback']; 99 $objHelperPlugin->addAction($hook_point_name, array($this, $callback_name), $priority); 100 } 101 } 102 } 103 } 85 104 } 86 ?>
Note: See TracChangeset
for help on using the changeset viewer.