<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class ButtonLink extends AbstractWidget { public static function getAssets() { return array('style' => ''); } public static function __callStatic($sQIr6, $g59Hh) { goto gKsuc; LvKMR: throw new \Exception('ButtonAjaxRequest error ' . join(',', $KDM3X) . ' '); goto HQJeg; gKsuc: $KDM3X = array('muted', 'warning', 'danger', 'success', 'primary'); goto frbk_; frbk_: if (in_array($sQIr6, $KDM3X)) { goto sIYJM; V6Z2N: return $qRCHN; goto cUFFD; lE3SE: $qRCHN->text($g59Hh[0]); goto fyBzF; sIYJM: $qRCHN = new static(); goto v5ypE; Ar8XL: $qRCHN->disabled(empty($g59Hh[2]) ? false : true); goto V6Z2N; fyBzF: $qRCHN->url($g59Hh[1]); goto Ar8XL; v5ypE: $qRCHN->type($sQIr6); goto lE3SE; cUFFD: } goto LvKMR; HQJeg: } public function render() { if ($this->disabled) { return '<a href="javascript:;" ' . ($this->blank ? 'target="_blank"' : '') . ' class="btn btn-' . $this->type . '">' . $this->text . '</a>'; } else { return '<a href="' . $this->url . '" ' . ($this->blank ? 'target="_blank"' : '') . ' class="btn btn-' . $this->type . '">' . $this->text . '</a>'; } } }