refactor GridView helpers

This commit is contained in:
2020-10-08 17:25:53 +07:00
parent 0273aa2179
commit 31675d0a28
12 changed files with 43 additions and 232 deletions

13
helpers/AreaGrid.php Normal file
View File

@@ -0,0 +1,13 @@
<?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] : "";
};
}
}