public function processExtensionInfo()
{
$phpinfo = '';
$info = $this->config->get('info');
if (is_array($info)) {
foreach ($info as $table) {
$phpinfo .= "\t" . 'php_info_print_table_start();' . PHP_EOL;
if (isset($table['header'])) {
$headerArray = array();
foreach ($table['header'] as $header) {
$headerArray[] = '"' . htmlentities($header) . '"';
}
$phpinfo .= "\t" . 'php_info_print_table_header(' . count($headerArray) . ', ' . join(', ', $headerArray) . ');' . PHP_EOL;
}
if (isset($table['rows'])) {
foreach ($table['rows'] as $row) {
$rowArray = array();
foreach ($row as $field) {
$rowArray[] = '"' . htmlentities($field) . '"';
}
$phpinfo .= "\t" . 'php_info_print_table_row(' . count($rowArray) . ', ' . join(', ', $rowArray) . ');' . PHP_EOL;
}
}
$phpinfo .= "\t" . 'php_info_print_table_end();' . PHP_EOL;
}
}
return $phpinfo;
}