<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; class ButtonLink extends AbstractWidget { public static function getAssets() { return array('style' => ''); } public static function __callStatic($ZZMEd, $rxS2C) { goto Ek4tz; KssuQ: throw new \Exception('ButtonAjaxRequest error ' . join(',', $Rmgm_) . ' '); goto E9FL5; fHX9d: if (in_array($ZZMEd, $Rmgm_)) { goto Lu0ai; yqxMw: return $ZceHo; goto dUahN; Y9bL3: $ZceHo->text($rxS2C[0]); goto QmAmc; Lu0ai: $ZceHo = new static(); goto eQIOz; eQIOz: $ZceHo->type($ZZMEd); goto Y9bL3; QmAmc: $ZceHo->url($rxS2C[1]); goto IjjXj; IjjXj: $ZceHo->disabled(empty($rxS2C[2]) ? false : true); goto yqxMw; dUahN: } goto KssuQ; Ek4tz: $Rmgm_ = array('muted', 'warning', 'danger', 'success', 'primary'); goto fHX9d; E9FL5: } 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>'; } } }