<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Rate extends AbstractField { protected function setup() { $this->addVariables(array('maxValue' => 10)); } public function maxValue($It5Zv) { $this->addVariables(array('maxValue' => $It5Zv)); return $this; } public function unserializeValue($wvO30, AbstractField $Lgjfa) { if ('' === $wvO30 || null === $wvO30) { return null; } return intval($wvO30); } public function serializeValue($wvO30, $w5oww) { if ('' === $wvO30 || null === $wvO30) { return null; } return intval($wvO30); } public function prepareInput($wvO30, $w5oww) { if ('' === $wvO30 || null === $wvO30) { return null; } return intval($wvO30); } }