ウェブプログラミングで使えるデザインパターン (170レス)
ウェブプログラミングで使えるデザインパターン http://medaka.5ch.net/test/read.cgi/php/1069451782/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
リロード規制
です。10分ほどで解除するので、
他のブラウザ
へ避難してください。
155: nobodyさん [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
156: nobodyさん [] 2006/01/25(水) 17:02:55 ID:thETe4Qv >>155 それがデザインパターンと何の関係があるの? http://medaka.5ch.net/test/read.cgi/php/1069451782/156
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.014s