function sqlsrv_REData in Drupal driver for SQL Server and SQL Azure 7
Same name and namespace in other branches
- 7.3 sqlsrv/reflexiondata.inc \sqlsrv_REData()
- 7.2 sqlsrv/reflexiondata.inc \sqlsrv_REData()
Get basic information about an installed PHP extension.
Parameters
ReflectionExtension $re :
Return value
array
1 call to sqlsrv_REData()
- sqlsrv_requirements in ./
sqlsrv.install - Implements hook_requirements().
File
- ./
sqlsrv.install, line 9
Code
function sqlsrv_REData(ReflectionExtension $re) {
$_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;
$_data['isPersistent'] = $re
->isPersistent() ?: NULL;
$_data['isTemporary'] = $re
->isTemporary() ?: NULL;
return $_data;
}