/** * prefilter用のフィルタ関数。プラグイン用のフックポイント処理を実行 * @param string $source ソース * @param Smarty_Compiler $smarty Smartyのコンパイラクラス * @return string $source ソース */ public function prefilter_transform($source, &$smarty) { // EC-CUBE 2.13 互換用置換 $source = preg_replace('/' . $smarty->_quote_replace($smarty->left_delimiter) . 'include_php /', $smarty->left_delimiter . 'render ', $source); if (!is_null($this->objPage)) { // フックポイントを実行. /* @var $objPlugin PluginHelper */ $objPlugin = Application::alias('eccube.helper.plugin', $this->objPage->plugin_activate_flg); if (is_object($objPlugin)) { $objPlugin->doAction('prefilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); } } return $source; }