<?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($zFGsv) { goto lfkgH; beGfS: switch ($zFGsv) { case self::NEW_BLANK: return 'target="_blank"'; } goto qiwna; qiwna: return ''; goto PgpA9; NW2wk: if (is_array($zFGsv)) { $zFGsv = isset($zFGsv['openType']) ? $zFGsv['openType'] : null; } goto beGfS; lfkgH: if (empty($zFGsv)) { return ''; } goto NW2wk; PgpA9: } }