• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/baseobject.php
  • Класс: BitrixDiskBaseObject
  • Вызов: BaseObject::getParent
public function getParent()
{
	if(!$this->parentId)
	{
		return null;
	}

	if($this->isLoadedAttribute('parent') && $this->parent && $this->parentId === $this->parent->getId())
	{
		return $this->parent;
	}
	//todo - BaseObject - knows about Folder ^( Nu i pust'
	$this->parent = Folder::loadById($this->getParentId());
	$this->setAsLoadedAttribute('parent');

	return $this->parent;
}