Context::get('file_srl') 로 현재 다운로드 받으려는 파일 번호를 알 수 있다면
이 파일이 첨부된 문서번호 upload_target_srl,upload_target_type 를 알려면 어떻게 코드를 작성해야 할까요??
PHP | PHP 7.2 |
---|---|
CMS | Rhymix 2.x |
Context::get('file_srl') 로 현재 다운로드 받으려는 파일 번호를 알 수 있다면
이 파일이 첨부된 문서번호 upload_target_srl,upload_target_type 를 알려면 어떻게 코드를 작성해야 할까요??
FileModel::getFile(Context::get('file_srl')) 로 가져오시면 그 안에 담길 것 같은데요.
https://github.com/rhymix/rhymix/blob/f0085f816ef91bab0fb31a2a730cd23e768363fc/modules/file/file.model.php#L334-L364