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