You are here

private function RISEncoder::checkKeys in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_ris/src/Encoder/RISEncoder.php \Drupal\bibcite_ris\Encoder\RISEncoder::checkKeys()

Check if keys in array.

Parameters

array $keys: Array of keys.

array $array: Array to check.

Return value

bool Result of checking.

1 call to RISEncoder::checkKeys()
RISEncoder::decode in modules/bibcite_ris/src/Encoder/RISEncoder.php

File

modules/bibcite_ris/src/Encoder/RISEncoder.php, line 161

Class

RISEncoder
RIS format encoder.

Namespace

Drupal\bibcite_ris\Encoder

Code

private function checkKeys($keys, $array) {
  $result = TRUE;
  foreach ($keys as $key) {
    $result &= array_key_exists($key, $array);
  }
  return $result;
}