- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/composite/helper.php
- Класс: BitrixMainCompositecan
- Вызов: can::readStatistic
static function readStatistic()
{
$result = false;
$fileName = self::getEnabledFilePath();
if (file_exists($fileName) && ($contents = file_get_contents($fileName)) !== false)
{
$fileValues = explode(",", $contents);
$result = array(
"HITS" => intval($fileValues[0]),
"MISSES" => intval($fileValues[1]),
"QUOTA" => intval($fileValues[2]),
"POSTS" => intval($fileValues[3]),
"FILE_SIZE" => doubleval($fileValues[4]),
);
}
return $result;
}