<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class ButtonLink extends AbstractWidget { public static function getAssets() { return array('style' => ''); } public static function __callStatic($f0dxO, $RSGSj) { goto qah9D; zdPQI: if (in_array($f0dxO, $eElQG)) { goto fYWyE; wTYQC: $BoHUj->url($RSGSj[1]); goto ruSQ2; B9Zpn: return $BoHUj; goto rSGDt; PP6Eg: $BoHUj->text($RSGSj[0]); goto wTYQC; fYWyE: $BoHUj = new static(); goto RutVj; ruSQ2: $BoHUj->disabled(empty($RSGSj[2]) ? false : true); goto B9Zpn; RutVj: $BoHUj->type($f0dxO); goto PP6Eg; rSGDt: } goto opsLN; qah9D: $eElQG = array('muted', 'warning', 'danger', 'success', 'primary'); goto zdPQI; opsLN: throw new \Exception('ButtonAjaxRequest error ' . join(',', $eElQG) . ' '); goto UG58R; UG58R: } 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>'; } } }