$this->id, "guid"=>$this->guid, "word"=> $this->word, "word_en"=> $this->word_en, "meaning"=> $this->meaning, "other_meaning"=> $this->other_meaning, "tag"=> $this->tag, "note"=> $this->note, "language"=> $this->language, "channal"=> $this->channal, "studio" => StudioApi::getById($this->owner), "editor"=> UserApi::getById($this->editor_id), "created_at"=> $this->created_at, "updated_at"=> $this->updated_at, ]; if(!empty($this->channal)){ $data["channel"] = ChannelApi::getById($this->channal); } return $data; } }