mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 10:55:34 +08:00
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class logisticsmanager_modifier_column_express_template {
|
||
/**
|
||
* columns_modifier
|
||
* @param mixed $columns columns
|
||
* @return mixed 返回值
|
||
*/
|
||
public function columns_modifier(&$columns) {
|
||
$tmpDetail=array();
|
||
foreach($columns as $key=>$value){
|
||
if (method_exists($this, $value[1] . '_display')) {
|
||
$displayMethod=$value[1] . '_display';
|
||
$isDisplay = $this->{$displayMethod}();
|
||
if ($isDisplay) {
|
||
$tmpDetail[$key]=$value;
|
||
}
|
||
}else{
|
||
$tmpDetail[$key]=$value;
|
||
}
|
||
}
|
||
$columns=$tmpDetail;
|
||
}
|
||
|
||
/**
|
||
* 是否默认
|
||
*/
|
||
public function column_isdefault_display() {
|
||
$display = false;
|
||
if (in_array($_GET['act'], array('delivery', 'stock'))) {
|
||
$display = true;
|
||
}
|
||
return $display;
|
||
}
|
||
}
|