ウェブプログラミングで使えるデザインパターン (170レス)
ウェブプログラミングで使えるデザインパターン http://medaka.5ch.net/test/read.cgi/php/1069451782/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
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
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 15 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.011s