public static function Utils::ExtensionData in Drupal driver for SQL Server and SQL Azure 8.2
Same name and namespace in other branches
- 8 drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::ExtensionData()
Get some info about extensions...
Parameters
\ReflectionExtension $re:
Return value
1 call to Utils::ExtensionData()
- Tasks::InstallRequirements in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Install/ Tasks.php - Return the install requirements for both the status page and the install process.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Utils.php, line 43
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
public static function ExtensionData($name) {
$re = new \ReflectionExtension($name);
$data = new ExtensionData();
$data
->Name($re
->getName() ?: null);
$data
->Version($re
->getVersion() ?: null);
$data
->ClassName(PHP_EOL . implode(", ", $re
->getClassNames()) ?: null);
$constants = '';
foreach ($re
->getConstants() as $key => $value) {
$constants .= "\n{$key}:={$value}";
}
$data
->Constants($constants);
$data
->Dependencies($re
->getDependencies() ?: null);
$data
->Functions(PHP_EOL . implode(", ", array_keys($re
->getFunctions())) ?: null);
$data
->IniEntries($re
->getINIEntries() ?: null);
$data
->Persistent($re
->isPersistent() ?: null);
$data
->Temporary($re
->isTemporary() ?: null);
return $data;
}