<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Grid\Filter; class Likes extends AbstractFilter { public function condition($xVdRy) { if (isset($xVdRy['likes']) && is_array($xVdRy['likes'])) { goto CQi1B; CQi1B: $GjEhx = array(); goto mcbou; iX5iI: if (!empty($GjEhx)) { return $GjEhx; } goto QTwCU; mcbou: foreach ($xVdRy['likes'] as $jzj7J) { if (empty($jzj7J)) { continue; } $GjEhx[] = $this->buildCondition($this->column, 'like', "%{$jzj7J}%"); } goto iX5iI; QTwCU: } return null; } public function groupTags($vBwJf, $dMFDj = null) { goto Qx22T; Qj8n6: return $this; goto bOous; HFk3d: $this->field->options($vBwJf); goto MjUnF; MjUnF: $this->field->serializeType($dMFDj); goto Qj8n6; Qx22T: $this->field = new Field\GroupTags($this); goto HFk3d; bOous: } }