Skip to content

Instantly share code, notes, and snippets.

View kamera25's full-sized avatar
😏

NAKAOKU Takahiro kamera25

😏
View GitHub Profile
@kamera25
kamera25 / gist:f3aac1fded7a3494cb04
Last active August 29, 2015 14:13
regular.php の仮リファクタリング
<?php
class Helper_Shift_Regular{
// 該当時間の勤務スタッフ数を求める
public static function regular_work_staff_count($regular_shift_day_id ,$shift_type) {
if($shift_type == 0){
$result = DB::select('*')
->from('regular_user')
->where('regular_day_id', $regular_shift_day_id)
->where('edited_shift_type', 'in', array(1,2,3))