3namespace Bitrix\Forum\Internals;
5use Bitrix\Forum\ForumTable;
7use Bitrix\Forum\Permission;
8use Bitrix\Main\Config\Option;
10use Bitrix\Main\SystemException;
12abstract class Entity implements \ArrayAccess
14 use \Bitrix\Forum\Internals\EntityBaseMethods;
28 throw new \Bitrix\Main\ArgumentNullException(static::class .
" empty id.");
32 $this->forum =
new Forum($this->data[
"FORUM_ID"]);
34 if ($this->authorId ===
null)
36 throw new \Bitrix\Main\ArgumentNullException(
"Author id must be defined.");
39 $this->errorCollection = new \Bitrix\Main\ErrorCollection();
45 abstract protected function init();
54 return $this->forum->getId();
59 return $this->authorId;
63 abstract public function remove();
69 abstract public static function delete(
int $id);
static create($parentObject, array $fields)
static update(int $id, array &$fields)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)