ウェブプログラミングで使えるデザインパターン (170レス)
上
下
前
次
1-
新
155
(1)
: 2006/01/20(金)13:38 ID:???
AA×
[240|
320
|
480
|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
155: [sage] 2006/01/20(金) 13:38:24 ID:??? PHPだけど、 class array_formatter{ function format_array(&$array){ if(!count($array)) return $this->format_empty(); $html = $this->format_header($array); foreach($array as $key => $value){ $html .= $this->format_item($key, $value); } $html .= $this->format_footer($array); return $html; } function format_empty(){ } function format_header(&$array){ } function format_footer(&$array){ } function format_item($key, $value){ } } こんな感じのクラスを継承して使いまくってる。 http://medaka.5ch.net/test/read.cgi/php/1069451782/155
だけど こんな感じのクラスを継承して使いまくってる
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 15 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
ぬこの手
ぬこTOP
0.034s