• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/stack_cache_entry.php
  • Класс: CStackCacheEntry
  • Вызов: CStackCacheEntry::Get
function Get($id)
{
	if(array_key_exists($id, $this->values))
	{
		$result = $this->values[$id];
		//Move accessed value to the top of list only when it is not at the top
		end($this->values);
		if(key($this->values) !== $id)
		{
			$this->cleanGet = false;
			unset($this->values[$id]);
			$this->values = $this->values + array($id => $result);
		}

		return $result;
	}
	else
	{
		return false;
	}
}