<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class ButtonLink extends AbstractWidget { public static function getAssets() { return array('style' => ''); } public static function __callStatic($XggBq, $lUGZC) { goto v4EpB; Smlsi: throw new \Exception('ButtonAjaxRequest error ' . join(',', $T9vBG) . ' '); goto sFJI4; aEcFa: if (in_array($XggBq, $T9vBG)) { goto py6Cn; Jv7sG: $IEFeS->disabled(empty($lUGZC[2]) ? false : true); goto GjIs9; GjIs9: return $IEFeS; goto qu01g; PV4tW: $IEFeS->text($lUGZC[0]); goto tPbVZ; s9wQw: $IEFeS->type($XggBq); goto PV4tW; tPbVZ: $IEFeS->url($lUGZC[1]); goto Jv7sG; py6Cn: $IEFeS = new static(); goto s9wQw; qu01g: } goto Smlsi; v4EpB: $T9vBG = array('muted', 'warning', 'danger', 'success', 'primary'); goto aEcFa; sFJI4: } 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>'; } } }