getRecord()->id; } public function getDomain(): string { return $this->getRecord()->domain; } public function getReason(): string { return $this->getRecord()->reason ?? tr("url_is_banned_default_reason"); } public function getInitiator(): ?User { return (new Users())->get($this->getRecord()->initiator); } public function getComment(): string { return OPENVK_ROOT_CONF["openvk"]["preferences"]["susLinks"]["showReason"] ? tr("url_is_banned_comment_r", OPENVK_ROOT_CONF["openvk"]["appearance"]["name"], $this->getReason()) : tr("url_is_banned_comment", OPENVK_ROOT_CONF["openvk"]["appearance"]["name"]); } public function getRegexpRule(): string { return addslashes("/" . $this->getDomain() . $this->getRawRegexp() . "/"); } public function getRawRegexp(): string { return $this->getRecord()->regexp_rule; } }