<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Util\StrUtil; class Text extends AbstractField { protected function setup() { $this->addVariables(array('autoTrim' => false)); } public function autoTrim($Xi6co = true) { $this->addVariables(array('autoTrim' => $Xi6co)); return $this; } public function prepareInput($HDpl6, $Ud6x8) { if ($this->variables['autoTrim']) { $HDpl6 = StrUtil::filterSpecialChars($HDpl6); $HDpl6 = trim($HDpl6); } return $HDpl6; } }