<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class ButtonLink extends AbstractWidget { public static function getAssets() { return array('style' => ''); } public static function __callStatic($L1g9F, $CUZy6) { goto xSK6l; djOs1: if (in_array($L1g9F, $GdddG)) { goto iNjEV; WUOiH: return $o5T8w; goto p1Qwb; W7bqk: $o5T8w->text($CUZy6[0]); goto h__kn; zcW4n: $o5T8w->type($L1g9F); goto W7bqk; q8viO: $o5T8w->disabled(empty($CUZy6[2]) ? false : true); goto WUOiH; h__kn: $o5T8w->url($CUZy6[1]); goto q8viO; iNjEV: $o5T8w = new static(); goto zcW4n; p1Qwb: } goto kievF; xSK6l: $GdddG = array('muted', 'warning', 'danger', 'success', 'primary'); goto djOs1; kievF: throw new \Exception('ButtonAjaxRequest error ' . join(',', $GdddG) . ' '); goto lsKK1; lsKK1: } 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>'; } } }