<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class ButtonLink extends AbstractWidget { public static function getAssets() { return array('style' => ''); } public static function __callStatic($c6VKG, $lLyBI) { goto GQfy6; y5kss: if (in_array($c6VKG, $YoRvD)) { goto tULBQ; Dplae: return $SKGnU; goto yKLCV; im6eN: $SKGnU->disabled(empty($lLyBI[2]) ? false : true); goto Dplae; g3pv_: $SKGnU->text($lLyBI[0]); goto gCSUZ; tULBQ: $SKGnU = new static(); goto hp20W; hp20W: $SKGnU->type($c6VKG); goto g3pv_; gCSUZ: $SKGnU->url($lLyBI[1]); goto im6eN; yKLCV: } goto f9zpT; f9zpT: throw new \Exception('ButtonAjaxRequest error ' . join(',', $YoRvD) . ' '); goto zKbWp; GQfy6: $YoRvD = array('muted', 'warning', 'danger', 'success', 'primary'); goto y5kss; zKbWp: } 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>'; } } }