Help:Extension/GetEnvironment

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by one user not shown)
Line 2: Line 2:
 
|author=K, Suwa
 
|author=K, Suwa
 
|version=0.1
 
|version=0.1
 +
|type=Parser function
 
}}
 
}}
  
Line 8: Line 9:
 
環境変数を取得するextensionです。
 
環境変数を取得するextensionです。
 
取得できる環境変数はHTTP_ACCEPT_LANGUAGEのみです。
 
取得できる環境変数はHTTP_ACCEPT_LANGUAGEのみです。
 +
 +
== Example ==
 +
=== <nowiki>{{#getenv:変数名}}</nowiki> ===
 +
現在はlang変数以外は使えません。
 +
 +
* コード
 +
<nowiki>{{#getenv:lang}}</nowiki>
 +
 +
* 実行例
 +
{{#getenv:lang}}
  
 
== Requirements ==
 
== Requirements ==
Line 15: Line 26:
 
<table border="1" cellpadding="3" cellspacing="1">
 
<table border="1" cellpadding="3" cellspacing="1">
 
  <tr><td>version</td><td>source</td><td>md5</td><td>OperationCheck version</td></tr>
 
  <tr><td>version</td><td>source</td><td>md5</td><td>OperationCheck version</td></tr>
  <tr><td>0.1(April 23,2010)</td><td>{{#ifexistfile:/data/src/GetEnvironment/GetEnvironment.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">35a3028c1584a5fc0e0810206b92486a</pre></td><td>1.11.1</td></tr>
+
  <tr><td>0.1(April 23,2010)</td><td>{{#ifexistfile:/data/src/GetEnvironment/GetEnvironment.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">35a3028c1584a5fc0e0810206b92486a</pre></td><td>1.11.1, 1.16.2</td></tr>
 
</table>
 
</table>
  
Line 25: Line 36:
  
 
== Function ==
 
== Function ==
# getenv
+
# [[Help:Extensions#.7B.7B.23getenv:_.E5.A4.89.E6.95.B0.E5.90.8D.7D.7D|getenv]]

Latest revision as of 14:12, 1 March 2011

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki
License
Hooks used
Token typeParser function

Contents


環境変数を取得するextensionです。 取得できる環境変数はHTTP_ACCEPT_LANGUAGEのみです。

[edit] Example

[edit] {{#getenv:変数名}}

現在はlang変数以外は使えません。

  • コード
{{#getenv:lang}}
  • 実行例

[edit] Requirements

None

[edit] Download

versionsourcemd5OperationCheck version
0.1(April 23,2010)GetEnvironment.phps
35a3028c1584a5fc0e0810206b92486a
1.11.1, 1.16.2

[edit] Installtion

  1. Download the source code and rename it to GetEnvironment.php.
  2. Place it in the extensions/ directory.
  3. Insert the follow lines to LocalSettings.php
require_once( "$IP/extensions/GetEnvironment.php" );

[edit] Function

  1. getenv
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox