editor_uid ){ $role = 'owner'; } return [ "id"=>$this->id, "book"=> $this->book_id, "paragraph"=> $this->paragraph, "word_start"=> $this->word_start, "word_end"=> $this->word_end, "editor"=> StudioApi::getById($this->editor_uid), "channel"=> ChannelApi::getById($this->channel_uid), "content"=>$this->content, "html"=> MdRender::render($this->content,$this->channel_uid), "role"=>$role, "created_at"=> $this->created_at, "updated_at"=> $this->updated_at, ]; } }