将数组作为指令调用
@param $params
@return null
432833
function put($params)
    {
        if(isset($params['put']))
        {
            Error::info('SelectDB Error!','Params put() cannot call put()!');
        }
        //处理where条件
        if (isset($params['where']))
        {
            $wheres = $params['where'];
            if (is_array($wheres))
            {
                foreach ($wheres as $where)
                {
                    $this->_where($where);
                }
            }
            else
            {
                $this->_where($wheres);
            }
            unset($params['where']);
        }
        //处理orwhere条件
        if(isset($params['orwhere']))
        {
            $orwheres = $params['orwhere'];
            if(is_array($orwheres)) foreach($orwheres as $orwhere) $this->orwhere($orwhere);
            else $this->$orwheres($orwheres);
            unset($params['orwhere']);
        }
        //处理walk调用
        if (isset($params['walk']))
        {
            foreach($params['walk'] as $call)
            {
                list($key, $value) = each($call);
                if (strpos($key, '_') !== 0)
                {
                    $this->_call($key, $value);
                }
                else
                {
                    $this->extraParmas[substr($key, 1)] = $value;
                }
            }
            unset($params['walk']);
        }
        //处理其他参数
        foreach ($params as $key => $value)
        {
            if (strpos($key, '_') !== 0)
            {
                $this->_call($key, $value);
            }
            else
            {
                $this->extraParmas[substr($key, 1)] = $value;
            }
        }
    }
1220823
public function search($params)
    {
        $searchResult = $this->getRequest()->request(
            'POST',
            $this->getRequestUrl('searches'),
            $this->getSearchQuery($params)
        );

        return $this->getInputsFromSearchResult($searchResult);
    }
943028
protected function setQueryParams(array $params)
    {
        foreach ($params as $key => $value) {
            $this->setQueryParam($key, $value);
        }
    }
1305396
public function complete($params)
	{
		$requestParams = $this->initRequestParams('complete', $params);
		$this->request('complete', $requestParams);

		return empty($this->error);
	}
865501
public static function fromDataQueryParams($params)
    {
        // Switch on reading mode
        if (empty($params["Versioned.mode"])) {
            return null;
        }

        switch ($params["Versioned.mode"]) {
            case 'archive':
                return 'Archive.' . $params['Versioned.date'] . '.' . $params['Versioned.stage'];
            case 'stage':
                return 'Stage.' . $params['Versioned.stage'];
            default:
                return null;
        }
    }
13491
public function search($params = array()) {
        $this->checkPermissions('search');
        
        return $this->client->retrieveData($this->resourceName . '/search', $params);
    }
266001
public function call(...$params)
    {
        $params = $params ?: $this->params;
        if(!$this->instanciated) {
            $this->instanciate();
        }

        return call_user_func_array($this->callable, $params);
    }
337309
public function getParam($param = null)
    {
        if (null === $param) {
            return $this->_params;
        }

        return isset($this->_params[$param]) ? $this->_params[$param] : null;
    }
122514
public function get($params) {
		$curl = curl_init();
		$header[] = "key: $this->api_key";
		$query = http_build_query($params);
		curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
		curl_setopt($curl, CURLOPT_URL, $this->api_url . "/" . $this->endpoint . "?" . $query);
		curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
		curl_setopt($curl, CURLOPT_ENCODING, "");
		curl_setopt($curl, CURLOPT_MAXREDIRS, 10);
		curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
		curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "GET");
		curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
		curl_setopt($curl, CURLOPT_TIMEOUT, 30);
		$request = curl_exec($curl);
		$return = ($request === FALSE) ? curl_error($curl) : $request;
		curl_close($curl);
		return $return;
	}
1129567
public function getParam(string $param)
    {
        if (! empty($this->match['params'][$param])) {
            return $this->match['params'][$param];
        }
    }
43384
public function form_val($params) {
        $index = isset($params['index']) ? $params['index'] : null;
        $default = isset($params['default']) ? $params['default'] : null;
        return Input::param($index, $default);
    }
229738
public function check($params)
	{
		$requestParams = $this->initRequestParams('check', $params);
		$this->request('check', $requestParams);

		return empty($this->error);
	}
385129
public function setParams( $params )
    {
        if ( $params instanceof Traversable )
        {
            $params = iterator_to_array( $params );
        }
        else if ( is_object( $params ) && ! $params instanceof ArrayAccess )
        {
            $params = (array) $params;
        }

        return parent::setParams( $params );
    }
1151566
public function getResponseParam($param) {
    if (isset($this->response[$param])) {
      return $this->response[$param];
    }
    return null;
  }
91928
public function get($params) {
        $orm = !is_null($params['ormObject']) ? $params['ormObject'] : ORM::for_table($params['table']);

        return ($params['args'] && $params['args'][0] == 'object') ? $orm->find_many() : $orm->find_array();
    }
532136
public function send(array $params)
    {
        if (! empty($this->_kf_account)) {
            // 如果需要以某个客服帐号来发消息（在微信6.0.2及以上版本中显示自定义头像），则需在JSON数据包的后半部分加入customservice参数
            $params['customservice'] = array(
                "kf_account" => $this->_kf_account
            );
        }
        $rst = $this->_request->post($this->_url . 'message/custom/send', $params);
        return $this->_client->rst($rst);
    }
808883
public function delete($params = null)
    {
        $handle = $this->prepareDelete($params);
        return $this->curlGetResponse($handle);
    }