<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Likes extends AbstractFilter { public function condition($r8NJk) { if (isset($r8NJk['likes']) && is_array($r8NJk['likes'])) { goto wDMvS; wDMvS: $diux7 = array(); goto gZ43B; iLVso: if (!empty($diux7)) { return $diux7; } goto MspZK; gZ43B: foreach ($r8NJk['likes'] as $H68d4) { if (empty($H68d4)) { continue; } $diux7[] = $this->buildCondition($this->column, 'like', "%{$H68d4}%"); } goto iLVso; MspZK: } return null; } public function groupTags($JXw2O, $ZX6kD = null) { goto fe6ND; N_Esp: $this->field->options($JXw2O); goto MigDO; fe6ND: $this->field = new Field\GroupTags($this); goto N_Esp; KR05L: return $this; goto ooPO_; MigDO: $this->field->serializeType($ZX6kD); goto KR05L; ooPO_: } }