<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Period extends AbstractField { public function unserializeValue($Mczr_, AbstractField $rZfgs) { return $Mczr_; } public function serializeValue($Mczr_, $vn_cr) { return $Mczr_; } public function prepareInput($Mczr_, $vn_cr) { goto fYnjh; fYnjh: $q26cr = explode(':', $Mczr_); goto SMaeA; SMaeA: $AG1dZ = array(isset($q26cr[0]) ? $q26cr[0] : 0, isset($q26cr[1]) ? $q26cr[1] : 0, isset($q26cr[2]) ? $q26cr[2] : 0); goto zyTrM; cgWRQ: return sprintf('%02d:%02d:%02d', $AG1dZ[0], $AG1dZ[1], $AG1dZ[2]); goto qmq3O; zyTrM: foreach ($AG1dZ as $B34tD => $Xz28r) { $AG1dZ[$B34tD] = max(intval($Xz28r), 0); } goto cgWRQ; qmq3O: } }