| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class OJModel extends Model |
||
| 11 | { |
||
| 12 | protected $tableName='oj'; |
||
| 13 | |||
| 14 | public static function oid($ocode) |
||
| 15 | { |
||
| 16 | return DB::table('oj')->where(["ocode"=>$ocode])->first()["oid"]; |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function ocode($oid) |
||
| 20 | { |
||
| 21 | return self::basic($oid)["ocode"]; |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function basic($oid) |
||
| 25 | { |
||
| 26 | return DB::table('oj')->where(["oid"=>$oid])->first(); |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function insertOJ($row) |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function updateOJ($oid, $row) |
||
| 35 | { |
||
| 36 | return DB::table('oj')->where(["oid"=>$oid])->update($row); |
||
| 37 | } |
||
| 38 | |||
| 39 | public static function removeOJ($filter) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |