<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Shop\Type; use ModStart\Core\Type\BaseType; class GoodsSaleStatus implements BaseType { const ON = 1; const OFF = 2; public static function getList() { return array(self::ON => '正在销售', self::OFF => '已下架'); } public static function getByLabel($kEEi9) { foreach (self::getList() as $KAKiA => $Iim2u) { if ($Iim2u == $kEEi9) { return $KAKiA; } } return null; } }