You are here

private function OpCacheDataModel::_processPartition in Production check & Production monitor 7

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

File

includes/prod_check.opcache.inc, line 236

Class

OpCacheDataModel

Code

private function _processPartition($value, $name = null) {
  if (array_key_exists('size', $value)) {
    return $value;
  }
  $array = array(
    'name' => $name,
    'children' => array(),
  );
  foreach ($value as $k => $v) {
    $array['children'][] = $this
      ->_processPartition($v, $k);
  }
  return $array;
}