function sqlsrv_extension_data in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 4.2.x sqlsrv.install \sqlsrv_extension_data()
- 3.1.x sqlsrv.install \sqlsrv_extension_data()
- 4.0.x sqlsrv.install \sqlsrv_extension_data()
- 4.1.x sqlsrv.install \sqlsrv_extension_data()
Get some info about extensions...
Parameters
mixed $name: Extension name.
Return value
array Extension information.
1 call to sqlsrv_extension_data()
- sqlsrv_requirements in ./
sqlsrv.install - Implements hook_requirements().
File
- ./
sqlsrv.install, line 214 - Installation file for sqlsrv module.
Code
function sqlsrv_extension_data($name) {
$re = new \ReflectionExtension($name);
$_data = [];
$_data['getName'] = $re
->getName() ?: NULL;
$_data['getVersion'] = $re
->getVersion() ?: NULL;
$_data['getClassName'] = PHP_EOL . implode(", ", $re
->getClassNames()) ?: NULL;
foreach ($re
->getConstants() as $key => $value) {
$_data['getConstants'] .= "\n{$key}:={$value}";
}
$_data['getDependencies'] = $re
->getDependencies() ?: NULL;
$_data['getFunctions'] = PHP_EOL . implode(", ", array_keys($re
->getFunctions())) ?: NULL;
$_data['getINIEntries'] = $re
->getINIEntries() ?: NULL;
return $_data;
}