<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Likes extends AbstractFilter { public function condition($ADVMQ) { if (isset($ADVMQ['likes']) && is_array($ADVMQ['likes'])) { goto pXmuT; pXmuT: $xn5uK = array(); goto cxLeq; oTJhO: if (!empty($xn5uK)) { return $xn5uK; } goto n4eyN; cxLeq: foreach ($ADVMQ['likes'] as $j9fPC) { if (empty($j9fPC)) { continue; } $xn5uK[] = $this->buildCondition($this->column, 'like', "%{$j9fPC}%"); } goto oTJhO; n4eyN: } return null; } public function groupTags($u5dP6, $VBrGA = null) { goto uOGL7; wsDS7: $this->field->options($u5dP6); goto MGHG4; nHBpx: return $this; goto IcjAV; MGHG4: $this->field->serializeType($VBrGA); goto nHBpx; uOGL7: $this->field = new Field\GroupTags($this); goto wsDS7; IcjAV: } }