private function RISEncoder::checkKeys in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x 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\EncoderCode
private function checkKeys($keys, $array) {
$result = TRUE;
foreach ($keys as $key) {
$result &= array_key_exists($key, $array);
}
return $result;
}