OSDN Git Service

- deleted unused Plugin Generator plugin.
authormumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Sun, 24 May 2009 11:05:47 +0000 (11:05 +0000)
committermumumu-org <mumumu-org@2ef88817-412d-0410-a32c-8029a115e976>
Sun, 24 May 2009 11:05:47 +0000 (11:05 +0000)
class/Plugin/Generator/Plugin.php [deleted file]

diff --git a/class/Plugin/Generator/Plugin.php b/class/Plugin/Generator/Plugin.php
deleted file mode 100644 (file)
index 78b4b7c..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-// vim: foldmethod=marker
-/**
- *  Plugin.php
- *
- *  @author     Masaki Fujimoto <fujimoto@php.net>
- *  @license    http://www.opensource.org/licenses/bsd-license.php The BSD License
- *  @package    Ethna
- *  @version    $Id$
- */
-
-// {{{ Ethna_Plugin_Generator_Plugin
-/**
- *  スケルトン生成クラス
- *
- *  @author     Masaki Fujimoto <fujimoto@php.net>
- *  @access     public
- *  @package    Ethna
- */
-class Ethna_Plugin_Generator_Plugin extends Ethna_Plugin_Generator
-{
-    /**
-     *  プラグインを生成する
-     *
-     *  @access public
-     *  @param  string  $type       プラグインの$type
-     *  @param  string  $name       プラグインの$name
-     *  @param  bool    $overwrite  上書きオプション
-     *  @return bool    true:成功 false:失敗
-     */
-    function generate($type, $name, $overwrite = false)
-    {
-        $appid = $this->ctl->getAppId();
-        $plugin =& $this->ctl->getPlugin();
-
-        list($class, $plugin_dir, $plugin_path) = $plugin->getPluginNaming($type, $name, $appid);
-
-        $macro = array();
-        $macro['project_id'] = $appid;
-        $macro['application_id'] = $appid;
-        $user_macro = $this->_getUserMacro();
-        $macro = array_merge($macro, $user_macro);
-
-        Ethna_Util::mkdir(dirname("$plugin_dir/$plugin_path"), 0755);
-
-        if ($this->_generateFile("skel.plugin.{$type}_{$name}.php", "$plugin_dir/$plugin_path", $macro, $overwrite) == false) {
-            printf("[warning] file creation failed [%s]\n", "$plugin_dir/$plugin_path");
-        } else {
-            printf("plugin script(s) successfully created [%s]\n", "$plugin_dir/$plugin_path");
-        }
-    }
-
-    /**
-     *  プラグインを消す
-     *
-     *  @access public
-     *  @param  string  $type       プラグインの$type
-     *  @param  string  $name       プラグインの$name
-     *  @return bool    true:成功 false:失敗
-     */
-    function remove($type, $name)
-    {
-        $appid = $this->ctl->getAppId();
-        $plugin =& $this->ctl->getPlugin();
-
-        list($class, $plugin_dir, $plugin_path) = $plugin->getPluginNaming($type, $name, $appid);
-
-        $macro = array();
-        $macro['project_id'] = $appid;
-        $user_macro = $this->_getUserMacro();
-        $macro = array_merge($macro, $user_macro);
-
-        if (file_exists("$plugin_dir/$plugin_path")) {
-            unlink("$plugin_dir/$plugin_path");
-            printf("file [%s] successfully unlinked\n", "$plugin_dir/$plugin_path");
-        } else {
-            printf("file [%s] not found\n", "$plugin_dir/$plugin_path");
-        }
-    }
-}
-// }}}
-?>