/** * Append some criteria to the collection, regardless of the presence of * it's in the collection itself. If a criteria with the same type has * already been set, it will be overwritten. * * @param \Luminol\Support\Criteria\Criterion|array|mixed $criteria * @return static */ public function overwrite($criteria) { foreach (Args::toArray($criteria, func_get_args()) as $criterion) { $this->criteria[$criterion->type()] = $criterion; } return $this; }
/** * @param mixed $original * @param array $arguments * @param string $delimiter * @return array */ function args_to_array($original, array $arguments, $delimiter = null) { return \Luminol\Support\Args::toArray($original, $arguments, $delimiter); }