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