Skip to content

Instantly share code, notes, and snippets.

Avatar
😏

NAKAOKU Takahiro kamera25

😏
View GitHub Profile
@kamera25
kamera25 / gist:f3aac1fded7a3494cb04
Last active Aug 29, 2015
regular.php の仮リファクタリング
View gist:f3aac1fded7a3494cb04
<?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))