lib/controllers/ObjectController.php
public function _checkParams($params, $required = [])
    {
        if (in_array('type', $required) && isset($params['type'])) {
            if (!$params['type']->hasDashboard) {
                $required[] = 'relatedObject';
                $required[] = 'relationship';
                $required[] = 'relatedType';
                $required[] = 'relationshipRole';
            }
        }

        $required = array_unique($required);
        foreach ($required as $r) {
            if (empty($params[$r])) {
                throw new HttpException(400, "Invalid request ({$r} is required)");
            }
        }

        return true;
    }
public function _checkParams($params, $required = [])
    {
        if (in_array('type', $required) && isset($params['type'])) {
            if (!$params['type']->hasDashboard) {
                $required[] = 'relatedObject';
                $required[] = 'relationship';
                $required[] = 'relatedType';
                $required[] = 'relationshipRole';
            }
        }

        $required = array_unique($required);
        foreach ($required as $r) {
            if (empty($params[$r])) {
                throw new HttpException(400, "Invalid request ({$r} is required)");
            }
        }

        return true;
    }
[[@doctodo method_description:_checkParams]].

@param [[@doctodo param_type:params]] $params   [[@doctodo param_description:params]]
@param array                          $required [[@doctodo param_description:required]] [optional]

@throws HttpException [[@doctodo exception_description:HttpException]]
@return [[@doctodo return_type:_checkParams]] [[@doctodo return_description:_checkParams]]