Actions

Difference between revisions of "Mahara日本語ドキュメント/基本PHPファイルテンプレート"

From Mahara Wiki

< Mahara日本語ドキュメント
Line 45: Line 45:
 
'''メモ:'''
 
'''メモ:'''
  
* Omit the closing php tag "?&gt;"
+
* php閉じタグ "?&gt;" は入れないでください。
 
* Catalyst employees should assign copyright to "Catalyst IT Ltd", if they are working on the project in company time.
 
* Catalyst employees should assign copyright to "Catalyst IT Ltd", if they are working on the project in company time.
 
* The author field should always be a person (or more than one), not a company
 
* The author field should always be a person (or more than one), not a company

Revision as of 05:51, 14 December 2011

作成中です - mits

以下、すべての新しいPHPファイル用のテンプレートです。あなたのファイルに外部からアクセスできるか否かにより、異なるテンプレートがあります。

このプロジェクトでは、APIドキュメントにPHPDocsを使用します。また、このプロジェクトはGPLとして許諾され、結果としてヘッダには特定の文言が含まれます (あなたのプログラムがGPLとして許諾されるためには、この文言が必要です。詳細はhttp://www.gnu.org/copyleft/gpl.htmlをご覧ください)。

訪問者がアクセスすると考えられるファイルのテンプレート

.
/**
  * Mahara: Electronic portfolio, weblog, resume builder and social networking
  * Copyright (C) 2011 Copyright Holder
  *
  * (rest of the GPL statement)
  *
  * @package    mahara
  * @subpackage core or plugintype/pluginname
  * @author     Firstname Lastname
  */

 define('INTERNAL', 1);
 require('init.php');

 // ここにあなたのコードを記述します :)

あなたが訪問者にアクセスして欲しくないファイルのテンプレート

.
/**
  * Mahara: Electronic portfolio, weblog, resume builder and social networking
  * Copyright (C) 2011 Copyright Holder
  *
  * (rest of the GPL statement)
  *
  * @package    mahara
  * @subpackage core or plugintype/pluginname
  * @author     Firstname Lastname
  */

 defined('INTERNAL') || die();

 // ここにあなたのコードを記述します :)

メモ:

  • php閉じタグ "?>" は入れないでください。
  • Catalyst employees should assign copyright to "Catalyst IT Ltd", if they are working on the project in company time.
  • The author field should always be a person (or more than one), not a company