Source for file LC_Page_Admin_Plugin.php
Documentation is available at LC_Page_Admin_Plugin.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
* @version $Id: LC_Page_Admin_Plugin.php 20764 2011-03-22 06:26:40Z nanasess $
if (DEBUG_LOAD_PLUGIN !== true) SC_Utils_Ex::sfDispException('プラグインは有効化されていない'); // XXX 開発途上対応
$this->tpl_mainpage = 'plugin/index.tpl';
$this->tpl_mainno = 'plugin';
$this->tpl_subno = 'index';
$this->tpl_subtitle = 'プラグイン管理';
$this->arrInstalledPlugin = array();
$this->arrInstallablePlugin = array();
$d = dir(PLUGIN_REALDIR);
while (false !== ($entry = $d->read())) {
if ($entry == '.') continue;
if ($entry == '..') continue;
if (!is_dir($d->path . $entry)) continue;
$plugins[$entry]['dir_exists'] = true;
$pluginsXml = SC_Utils_Ex::sfGetPluginsXml();
foreach ($pluginsXml->plugin as $plugin) {
$plugins[(string) $plugin->path]['installed'] = true;
foreach ($plugins as $path=> $plugin) {
$plugin['info'] = SC_Utils_Ex::sfGetPluginInfoArray($path);
if ($plugin['installed']) {
$this->arrInstalledPlugin[] = $plugin;
$this->arrInstallablePlugin[] = $plugin;
Documentation generated on Fri, 24 Feb 2012 14:01:31 +0900 by Seasoft
|