Powered By ExpressionEngine ExpressionEngine Wiki - Version 1.2 Script Executed in 0.3180 seconds
Powered By ExpressionEngine ExpressionEngine Wiki - Version 1.2 Script Executed in 0.3180 seconds
テストとしてはこれだけでは不十分で、0を明示的に与えた場合や7桁を超える数値、また年(西暦)に関しては上記ではテストしていません。 が、上記の一覧では期待通りの結果ですし、その他も一覧には載せていませんが手動テストの結果などから(今のところ)気期待通りに動いていることが確認できています。 ということでクラスは一応ちゃんと動いているということにして(^^;、これを本体に組み込みます。 まずcheckdate.phpというファイルをControllerフォルダの中に作成しそこに件のクラスを全部書きます。この時にこれまでのテストでは[~]区切りで日付範囲を返していたperiodクラスのgetDateRange()メソッドを[-]区切りで返すように変更します。 public function getDateRange() { : return $from."-".$to; } これは日付検索クラス
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く