「過去ログ/nplll 構造に関するメモ」の版間の差分

提供: NOBODY:PLACE Wiki
ナビゲーションに移動 検索に移動
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の5版が非表示)
1行目: 1行目:
'''※この記事は [[過去ログ]] に含まれている記事です'''
nplllの構造に関するドキュメント。
nplllの構造に関するドキュメント。


56行目: 58行目:
** repos → レポジトリ格納用
** repos → レポジトリ格納用
* www
* www
** 69tracks → [http://www.69tracks.com/ 69tracks] deprecated
** 69tracks → [http://www.69tracks.com/ 69tracks] <ref>deprecated</ref>
** backyard → [http://backyard.nplll.com 管理用] protected
** backyard → [http://backyard.nplll.com 管理用] <ref>protected</ref>
*** css
*** css
*** images
*** images
88行目: 90行目:
*** lib
*** lib
*** templates
*** templates
** switchover → [http://www.switchover.info/ SWITCH-OVER] deprecated
** switchover → [http://www.switchover.info/ SWITCH-OVER] <ref>deprecated</ref>
** tooearly → [http://tooearly.net/ tooEarly] deprecated
** tooearly → [http://tooearly.net/ tooEarly] <ref>deprecated</ref>
 
=== 注記 ===
<references/>
 
 
[[Category:過去ログ]]

2019年5月24日 (金) 11:05時点における最新版

※この記事は 過去ログ に含まれている記事です

nplllの構造に関するドキュメント。

構造に関するガイドライン

  • template_dirを除くSmartyフォルダ(config_dir、cache_dir、compile_dir)は$HOME/smarty直下のものを使用し新しく作らない
  • lib、templates、css、jsの各ディレクトリはドメインごとに設置する(サブドメインも1ドメインとして扱う。以下同じ)
    • ドメインを越えて使用するテンプレートファイルはSmartyフォルダ内のtemplatesディレクトリを使用する
  • ディレクトリに関する定数は下記のルールに従う
    • doc_root、lib_rootなどは$HOME直下のものを指す
    • 各ドメインごとのディレクトリはdoc_dir、lib_dirなどとし、各ドメインごとに拡張して設定する
  • 命名規則は下記のルールに従う
    • class名は大文字で始まり単語ごとに大文字を使用する
    • class名以外は小文字で始まり単語ごとに大文字を使用する
    • ローマ字表記はヘボン式を採用
    • 不必要な省略は行わない
    • その他、黒田さんの書かれたJET SETにおけるPHPコーディング・ガイドライン(JET SET)に準拠する方向で。

現在のツリー構造

現在のツリー構造。

nplll

  • backup → バックアップデータを格納
  • batch → cron処理するプログラムなど。
    • Diy1Nico
    • DiyHatenaBookmark
    • DiyRss
    • Flickr
  • cache → Smarty以外のキャッシュはここに格納
    • lastRss
  • config → アカウント情報など。XMLファイルを格納
  • db → SQLiteなどデータベースファイルの格納
  • lib → サーバ全体で使用する共通ライブラリ
    • config
      • MyConfig.class.php
    • connect
      • MyMysqlConnectionHandler.class.php
    • smarty
      • MySmarty.class.php
    • util
  • local
    • src
  • log → アクセスログ他各種ログ格納
  • pear → PEARディレクトリ
  • smarty3.0b3
    • cache → $Smarty->cache_dir(DO NOT make another.)
    • configs → $Smarty->config_dir(DO NOT make another.)
    • libs
      • plugins
    • templates
    • templates_c → $Smarty->compile_dir(DO NOT make another.)
  • svn
    • repos → レポジトリ格納用
  • www

注記

  1. ↑ deprecated
  2. ↑ protected
  3. ↑ deprecated
  4. ↑ deprecated