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