2012-09-21 Junichi Satoh <junichi@rworks.jp>

* include/help/ja/help_macros.php: Added a new help file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6992 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2012-09-21 00:32:59 +00:00
parent f24f80c3b4
commit 3320cbda4f
2 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-09-21 Junichi Satoh <junichi@rworks.jp>
* include/help/ja/help_macros.php: Added a new help file.
2012-09-20 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora.js, include/functions_api.php: cleaned

View File

@ -0,0 +1,35 @@
<?php
/**
* @package Include/help/ja
*/
?>
<h1>マクロ</h1>
モジュールの実行(module_exec)や、プラグインパラメータにマクロを設定することができます。
<br /><br />
マクロには次の 3つのパラメータがあります。
<ul>
<li>説明</li>
<li>デフォルト値 (オプション)</li>
<li>ヘルプ (オプション)</li>
</ul>
例えば、サーバで動作している apache のプロセス数を返すモジュールの設定では、次のコマンドを実行します。
<br /><br />
ps -A | grep apache2 | wc -l
<br /><br />
次のように、プロセス名はマクロで置き換えることができます。
<br /><br />
ps -A | grep _field1_ | wc -l
<br /><br />
マクロのパラメータは次のように設定します。
<ul>
<li>説明: Process</li>
<li>デフォルト値: apache2</li>
<li>ヘルプ: 指定した文字列の実行プロセス数をカウントします</li>
</ul>
このコンポーネントのモジュールを設定すると、デフォルトの値が "apache2" のテキストフィールド "Process" が表示され編集することができます。また、詳細としてヘルプの内容が表示されます。
<br /><br />
マクロは、必要なだけ設定することができます。