analyze($filename); if(isset($meta["error"])) throw new ISE(implode(", ", $meta["error"])); $this->setPerformer("Неизвестно"); $this->setName("Без названия"); } catch(\Exception $ex) { exit("Хакеры? Интересно..."); } return rename($filename, OPENVK_ROOT . "/storage/" . substr($hash, 0, 2) . "/$hash.mpeg3"); } function getName(): string { return $this->getRecord()->name; } function getPerformer(): string { return $this->getRecord()->performer; } function getGenre(): string { return $this->getRecord()->genre; } function getLyrics(): ?string { return $this->getRecord()->lyrics; } function getCanonicalName(): string { return $this->getRecord()->performer . " — " . $this->getRecord()->name; } function wire(): void { \Chandler\Database\DatabaseConnection::i()->getContext()->table("audio_relations")->insert([ "user" => $this->getRecord()->owner, "audio" => $this->getId(), ]); } }