refactor department
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\helpers;
|
||||
|
||||
class AreaGrid extends CommonGrid {
|
||||
|
||||
public static function pid($departmentArray) {
|
||||
return function($model) use ($departmentArray) {
|
||||
return isset($departmentArray[$model->pid]) ? $departmentArray[$model->pid] : "";
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\helpers;
|
||||
|
||||
class DepartmentGrid extends CommonGrid {
|
||||
|
||||
public static function pid($departmentArray) {
|
||||
return function($model) use ($departmentArray) {
|
||||
return isset($departmentArray[$model->pid]) ? $departmentArray[$model->pid] : "";
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user