• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/entity/base.php
  • Класс: BitrixSenderEntityBase
  • Вызов: Base::load
public function load($id)
{
	$this->clearErrors();
	$this->setData($this->getDefaultData());

	if (!$id)
	{
		return false;
	}

	$data = $this->loadData($id);
	if (!is_array($data))
	{
		$data = array();
	}
	$this->mergeData($data);

	if (!$this->hasErrors())
	{
		$this->id = $id;
	}

	return !$this->hasErrors();
}