<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Cms%2Fwordpress%2F%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95byMVC</id>
		<title>Cms/wordpress/プラグイン作成方法byMVC - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Cms%2Fwordpress%2F%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95byMVC"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Cms/wordpress/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95byMVC&amp;action=history"/>
		<updated>2026-04-24T16:03:24Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Cms/wordpress/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95byMVC&amp;diff=190&amp;oldid=prev</id>
		<title>127.0.0.1: ページの作成:「==MVCな感じでプラグインを書く== *記事上にhelloworld *管理画面の設定にhelloworld項目を設定  index.php  &lt;?php  /*  Plugin Name: helloworld  Plu...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Cms/wordpress/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95byMVC&amp;diff=190&amp;oldid=prev"/>
				<updated>2015-05-19T18:08:31Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==MVCな感じでプラグインを書く== *記事上にhelloworld *管理画面の設定にhelloworld項目を設定  index.php  &amp;lt;?php  /*  Plugin Name: helloworld  Plu...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MVCな感じでプラグインを書く==&lt;br /&gt;
*記事上にhelloworld&lt;br /&gt;
*管理画面の設定にhelloworld項目を設定&lt;br /&gt;
&lt;br /&gt;
index.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 /*&lt;br /&gt;
 Plugin Name: helloworld&lt;br /&gt;
 Plugin URI: http://example.com/plugin&lt;br /&gt;
 Description: 本文の上部にhelloworldを表示します。&lt;br /&gt;
 Version: 1.0&lt;br /&gt;
 Author: author1&lt;br /&gt;
 Author URI: http://example.com/author1&lt;br /&gt;
 */&lt;br /&gt;
 require_once dirname(__FILE__) . '/AddFilter.php';&lt;br /&gt;
 require_once dirname(__FILE__) . '/AddAction.php';&lt;br /&gt;
 // 追加フック定義&lt;br /&gt;
 add_filter('the_content', array('PluginHelloworld_AddFilter', 'the_content'));&lt;br /&gt;
 add_filter('admin_menu', array('PluginHelloworld_AddAction', 'admin_menu'));&lt;br /&gt;
&lt;br /&gt;
AddAction.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 /**&lt;br /&gt;
  * 追加アクションクラス&lt;br /&gt;
  */&lt;br /&gt;
 class PluginHelloworld_AddAction&lt;br /&gt;
 {&lt;br /&gt;
   /**&lt;br /&gt;
    * 管理項目メニュー設定&lt;br /&gt;
    */&lt;br /&gt;
   public function admin_menu()&lt;br /&gt;
   {&lt;br /&gt;
     require_once dirname(__FILE__) . '/actions/AdminMenuAction.php';&lt;br /&gt;
     $plugin = new PluginHelloworld_AdminMenuAction();&lt;br /&gt;
     return $plugin-&amp;gt;action();&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
AddFilter.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 /**&lt;br /&gt;
  * 追加フィルタークラス&lt;br /&gt;
  */&lt;br /&gt;
 class PluginHelloworld_AddFilter&lt;br /&gt;
 {&lt;br /&gt;
   /**&lt;br /&gt;
    * 記事本文フィルター&lt;br /&gt;
    */&lt;br /&gt;
   public function the_content($content)&lt;br /&gt;
   {&lt;br /&gt;
     require_once dirname(__FILE__) . '/filters/TheContentFilter.php';&lt;br /&gt;
     $plugin = new PluginHelloworld_TheContentFilter();&lt;br /&gt;
     return $plugin-&amp;gt;filter($content);&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
actions/AdminMenuAction.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 require_once dirname(__FILE__) . '/AbstractAction.php';&lt;br /&gt;
 /**&lt;br /&gt;
  * 管理メニューアクションクラス&lt;br /&gt;
  */&lt;br /&gt;
 class PluginHelloworld_AdminMenuAction extends PluginHelloworld_AbstractAction&lt;br /&gt;
 {&lt;br /&gt;
   /**&lt;br /&gt;
    * アクション実行&lt;br /&gt;
    */&lt;br /&gt;
   public function action()&lt;br /&gt;
   {&lt;br /&gt;
     add_options_page('helloworldオプション設定', 'helloworldの設定', 'administrator', dirname(dirname(__FILE__)) . '/views/AdminMenuView.php');&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
actions/AbstractAction.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 /**&lt;br /&gt;
  * 基底アクションクラス&lt;br /&gt;
  */&lt;br /&gt;
 abstract class PluginHelloworld_AbstractAction&lt;br /&gt;
 {&lt;br /&gt;
   public function action()&lt;br /&gt;
   {&lt;br /&gt;
     dir('no exists action method');&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
filter/TheContentFilter.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 require_once dirname(__FILE__) . '/AbstractFilter.php';&lt;br /&gt;
 /**&lt;br /&gt;
  * 記事本文フィルタークラス&lt;br /&gt;
  */&lt;br /&gt;
 class PluginHelloworld_TheContentFilter extends PluginHelloworld_AbstractFilter&lt;br /&gt;
 {&lt;br /&gt;
   /**&lt;br /&gt;
    * フィルター実行&lt;br /&gt;
    */&lt;br /&gt;
   public function filter($content)&lt;br /&gt;
   {&lt;br /&gt;
     return sprintf(&amp;quot;&amp;lt;&amp;lt;nowiki /&amp;gt;p&amp;gt;helloworld&amp;lt;/p&amp;gt;%s&amp;quot;, $content);&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
filter/AbstractFilter.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 /**&lt;br /&gt;
  * 基底フィルタークラス&lt;br /&gt;
  */&lt;br /&gt;
 abstract class PluginHelloworld_AbstractFilter&lt;br /&gt;
 {&lt;br /&gt;
   public function filter()&lt;br /&gt;
   {&lt;br /&gt;
     dir('no exists filter method');&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
views/AdminMenuView.php&lt;br /&gt;
 helloworld&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>	</entry>

	</feed>