<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Likes extends AbstractFilter { public function condition($cGzJA) { if (isset($cGzJA['likes']) && is_array($cGzJA['likes'])) { goto Rmrgs; Rmrgs: $Z8Rhz = array(); goto q1rL_; Q7TLu: if (!empty($Z8Rhz)) { return $Z8Rhz; } goto X5JZ4; q1rL_: foreach ($cGzJA['likes'] as $DI3q2) { if (empty($DI3q2)) { continue; } $Z8Rhz[] = $this->buildCondition($this->column, 'like', "%{$DI3q2}%"); } goto Q7TLu; X5JZ4: } return null; } public function groupTags($TG8rD, $yVew1 = null) { goto TDxJk; QJWrj: $this->field->options($TG8rD); goto jcV3M; jcV3M: $this->field->serializeType($yVew1); goto xfbwo; xfbwo: return $this; goto BXrgH; TDxJk: $this->field = new Field\GroupTags($this); goto QJWrj; BXrgH: } }