Files
OMS/app/logisticsmanager/lib/modifier/column/express/template.php
2025-12-28 23:13:25 +08:00

40 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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;
}
}