• Модуль: learning
  • Путь к файлу: ~/bitrix/modules/learning/classes/general/clearnaccess.php
  • Класс: CLearnAccess
  • Вызов: CLearnAccess::GetAccessCodesForSQL
protected function GetAccessCodesForSQL ($isUseCache = false)
{
	static $cache = array();

	if ($isUseCache && isset($cache['str' . $this->userId]))
		return ($cache['str' . $this->userId]);

	$arCodes = $this->GetAccessCodes ($isUseCache);
	$sql = $this->Array2CommaSeparatedListForSQL ($arCodes);

	// Cache in case when $isUseCache === false too. 
	// Because, this will refresh cache, if it exists before.
	$cache['str' . $this->userId] = $sql;

	return ($sql);
}