Lines Matching defs:fields
254 * @param array|string $fields
258 public function setFields($fields)
260 if (\is_array($fields)) {
261 $fields = \implode(',', $fields);
264 return $this->setParam('fields', (string) $fields);
282 return $this->getParam('fields');
290 return $this->hasParam('fields');
473 * @param array $fields if empty array all options will be returned
477 public function getOptions(array $fields = [])
479 if ($fields) {
480 return \array_filter(\array_intersect_key($this->getParams(), \array_flip($fields)));