src/ORM/DataList.php
public function setDataQueryParam($keyOrArray, $val = null)
    {
        $clone = clone $this;

        if (is_array($keyOrArray)) {
            foreach ($keyOrArray as $key => $value) {
                $clone->dataQuery->setQueryParam($key, $value);
            }
        } else {
            $clone->dataQuery->setQueryParam($keyOrArray, $val);
        }

        return $clone;
    }
public function setDataQueryParam($keyOrArray, $val = null)
    {
        $clone = clone $this;

        if (is_array($keyOrArray)) {
            foreach ($keyOrArray as $key => $value) {
                $clone->dataQuery->setQueryParam($key, $value);
            }
        } else {
            $clone->dataQuery->setQueryParam($keyOrArray, $val);
        }

        return $clone;
    }
public function setDataQueryParam ( $ keyOrArray , $ val = null ) { $ clone = clone $ this ; if ( is_array ( $ keyOrArray ) ) { foreach ( $ keyOrArray as $ key => $ value ) { $ clone -> dataQuery -> setQueryParam ( $ key , $ value ) ; } } else { $ clone -> dataQuery -> setQueryParam ( $ keyOrArray , $ val ) ; } return $ clone ; }
Returns a new DataList instance with the specified query parameter assigned

@param string|array $keyOrArray Either the single key to set, or an array of key value pairs to set
@param mixed $val If $keyOrArray is not an array, this is the value to set
@return static
Returns a new DataList instance with the specified query parameter assigned