• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/internals/entity/mailboxdirectory.php
  • Класс: BitrixMailInternalsEntityMailboxDirectory
  • Вызов: MailboxDirectory::jsonSerialize
public function jsonSerialize()
{
	return [
		'ID'             => $this->getId(),
		'MAILBOX_ID'     => $this->getMailboxId(),
		'NAME'           => $this->getName(),
		'FORMATTED_NAME' => $this->getFormattedName(),
		'PATH'           => $this->getPath(),
		'FLAGS'          => $this->getFlags(),
		'DELIMITER'      => $this->getDelimiter(),
		'DIR_MD5'        => $this->getDirMd5(),
		'LEVEL'          => $this->getLevel(),
		'IS_DISABLED'    => $this->isDisabled(),
		'CHILDREN'       => Json::decode(Json::encode($this->getChildren()))
	];
}