<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Input; use ModStart\Core\Util\StrUtil; use ModStart\Core\Util\TimeUtil; class ArrayPackage { private $data; private $cursor = 0; public function __construct($Sj05q) { $this->data = $Sj05q; } public static function build($Sj05q) { goto gnnnm; ILoa5: $Gshlm->cursor = 0; goto PKqDg; PKqDg: return $Gshlm; goto me_w4; gnnnm: $Gshlm = new ArrayPackage($Sj05q); goto ILoa5; me_w4: } public function resetCursor() { $this->cursor = 0; } public function next($PDSnF = null) { goto JlKva; XtJgg: return $PDSnF; goto xv6Fh; n1m11: if (isset($this->data[$dtpXv])) { return $this->data[$dtpXv]; } goto XtJgg; JlKva: $dtpXv = $this->cursor; goto iIqlF; iIqlF: $this->cursor++; goto n1m11; xv6Fh: } public function nextTrimString($PDSnF = null) { goto gUrLd; Nkr7A: if (null === $mdHu1) { return $PDSnF; } goto YHYui; YHYui: $mdHu1 = @trim((string) $mdHu1); goto MUtTj; MUtTj: $mdHu1 = StrUtil::filterSpecialChars($mdHu1); goto hBQWH; hBQWH: return $mdHu1; goto WD7po; gUrLd: $mdHu1 = $this->next($PDSnF); goto Nkr7A; WD7po: } public function nextTrimStringMapInteger($qrgRN = array(), $PDSnF = null) { goto cj6oT; HwOqQ: return $PDSnF; goto Jcj1s; cj6oT: $mdHu1 = $this->nextTrimString(); goto CvlUX; CvlUX: if (isset($qrgRN[$mdHu1])) { return $qrgRN[$mdHu1]; } goto HwOqQ; Jcj1s: } public function nextType($EtM72, $PDSnF = null) { goto SYSMC; Cps2V: $HBiwi = $EtM72::getList(); goto USa61; SYSMC: $mdHu1 = $this->nextTrimString(); goto Cps2V; FwUzt: return $PDSnF; goto KlOh3; USa61: foreach ($HBiwi as $Fkd1C => $pk5fc) { if ($mdHu1 == $Fkd1C) { return $Fkd1C; } } goto FwUzt; KlOh3: } public function nextTypeValue($EtM72, $PDSnF = null) { goto tNPwo; YcuA4: foreach ($HBiwi as $Fkd1C => $pk5fc) { if ($mdHu1 === $pk5fc) { return $Fkd1C; } } goto net8d; q1Lxr: $HBiwi = $EtM72::getList(); goto YcuA4; tNPwo: $mdHu1 = $this->nextTrimString(); goto q1Lxr; net8d: return $PDSnF; goto lhSZ3; lhSZ3: } public function nextInteger($PDSnF = null) { goto wvtKh; Y9NA1: if (null === $mdHu1) { return $mdHu1; } goto uZ85i; uZ85i: return intval($mdHu1); goto F0Sn3; wvtKh: $mdHu1 = $this->next($PDSnF); goto Y9NA1; F0Sn3: } public function nextDatetime($PDSnF = null) { goto w7E7H; w7E7H: $mdHu1 = $this->next($PDSnF); goto qA4NE; SKY8G: return $mdHu1; goto LgXZ8; qA4NE: if (TimeUtil::isDatetimeEmpty($mdHu1)) { return $PDSnF; } goto SKY8G; LgXZ8: } }