public function checkSettings($settings)
    {
        assert('is_array($settings)');

        if (!is_array($settings) || empty($settings)) {
            $errors = array('invalid_syntax');
        } else {
            $errors = array();
            if (!$this->_spValidationOnly) {
                $idpErrors = $this->checkIdPSettings($settings);
                $errors = array_merge($idpErrors, $errors);
            }
            $spErrors = $this->checkSPSettings($settings);
            $errors = array_merge($spErrors, $errors);

            $compressErrors = $this->checkCompressionSettings($settings);
            $errors = array_merge($compressErrors, $errors);
        }

        return $errors;
    }
public function checkSettings($settings)
    {
        assert('is_array($settings)');

        if (!is_array($settings) || empty($settings)) {
            $errors = array('invalid_syntax');
        } else {
            $errors = array();
            if (!$this->_spValidationOnly) {
                $idpErrors = $this->checkIdPSettings($settings);
                $errors = array_merge($idpErrors, $errors);
            }
            $spErrors = $this->checkSPSettings($settings);
            $errors = array_merge($spErrors, $errors);

            $compressErrors = $this->checkCompressionSettings($settings);
            $errors = array_merge($compressErrors, $errors);
        }

        return $errors;
    }
public function checkSettings ( $ settings ) { assert ( 'is_array($settings)' ) ; if ( ! is_array ( $ settings ) || empty ( $ settings ) ) { $ errors = array ( 'invalid_syntax' ) ; } else { $ errors = array ( ) ; if ( ! $ this -> _spValidationOnly ) { $ idpErrors = $ this -> checkIdPSettings ( $ settings ) ; $ errors = array_merge ( $ idpErrors , $ errors ) ; } $ spErrors = $ this -> checkSPSettings ( $ settings ) ; $ errors = array_merge ( $ spErrors , $ errors ) ; $ compressErrors = $ this -> checkCompressionSettings ( $ settings ) ; $ errors = array_merge ( $ compressErrors , $ errors ) ; } return $ errors ; }
Checks the settings info.

@param array $settings Array with settings data

@return array $errors  Errors found on the settings data
Checks the settings info .