You are here

public function OpCacheDataModel::getConfigDataRows in Production check & Production monitor 7

Same name and namespace in other branches
  1. 6 includes/prod_check.opcache.inc \OpCacheDataModel::getConfigDataRows()

File

includes/prod_check.opcache.inc, line 84

Class

OpCacheDataModel

Code

public function getConfigDataRows() {
  $rows = array();
  foreach ($this->_configuration['directives'] as $key => $value) {
    if ($value === false) {
      $value = 'false';
    }
    if ($value === true) {
      $value = 'true';
    }
    if ($key == 'opcache.memory_consumption') {
      $value = $this
        ->_size_for_humans($value);
    }
    $rows[] = "<tr><th>{$key}</th><td>{$value}</td></tr>\n";
  }
  return implode("\n", $rows);
}