<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Button extends AbstractField { protected $listable = false; protected $showable = false; protected function setup() { $this->addVariables(array('type' => 'button', 'style' => 'default')); } public function type($mdHu1) { $this->addVariables(array('type' => $mdHu1)); return $this; } public function style($mdHu1) { $this->addVariables(array('style' => $mdHu1)); return $this; } public function forSubmit() { $this->addVariables(array('type' => 'submit', 'style' => 'primary')); } }