<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Nav\Type; use ModStart\Core\Type\BaseType; class NavOpenType implements BaseType { const CURRENT_WINDOW = 1; const NEW_BLANK = 2; public static function getList() { return array(self::CURRENT_WINDOW => '当前窗口', self::NEW_BLANK => '新窗口'); } public static function getBlankAttributeFromValue($A46UD) { goto k0ovJ; k0ovJ: if (empty($A46UD)) { return ''; } goto uyuDI; I4QAr: switch ($A46UD) { case self::NEW_BLANK: return 'target="_blank"'; } goto X1smd; uyuDI: if (is_array($A46UD)) { $A46UD = isset($A46UD['openType']) ? $A46UD['openType'] : null; } goto I4QAr; X1smd: return ''; goto iE3MU; iE3MU: } }