• Модуль: learning
  • Путь к файлу: ~/bitrix/modules/learning/classes/general/clearnpath.php
  • Класс: CLearnPath
  • Вызов: CLearnPath::_SetPath
protected function _SetPath ($args)
{
	// If only one arguments and it's an array => set path from array.
	if ( (count($args) == 1) && (is_array($args[0])) )
	{
		$this->_SetPath ($args[0]);
		return;
	}

	$this->arPath = array();

	foreach ($args as $key => $lessonId)
	{
		if (
			( ! is_numeric($lessonId) )
			|| ( ! is_int($lessonId + 0) )
		)
		{
			$this->arPath = array();
			return;
		}

		$this->arPath[] = (int) ($lessonId);
	}
}