refactor GridView helpers
This commit is contained in:
13
helpers/AreaGrid.php
Normal file
13
helpers/AreaGrid.php
Normal 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] : "";
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user