<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Likes extends AbstractFilter { public function condition($JnEKk) { if (isset($JnEKk['likes']) && is_array($JnEKk['likes'])) { goto ElKY0; ElKY0: $bjWed = array(); goto iDEWI; zFSiI: if (!empty($bjWed)) { return $bjWed; } goto OQmSf; iDEWI: foreach ($JnEKk['likes'] as $nPIYG) { if (empty($nPIYG)) { continue; } $bjWed[] = $this->buildCondition($this->column, 'like', "%{$nPIYG}%"); } goto zFSiI; OQmSf: } return null; } public function groupTags($BwMie, $ECjl5 = null) { goto ylk99; eqEiH: $this->field->options($BwMie); goto TNYm9; Q317_: return $this; goto qs6Xx; TNYm9: $this->field->serializeType($ECjl5); goto Q317_; ylk99: $this->field = new Field\GroupTags($this); goto eqEiH; qs6Xx: } }