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