Commit graph

118 commits

Author SHA1 Message Date
Kijin Sung
7a6400f39d Allow point reversion policies to be customized for each module 2025-09-04 21:47:28 +09:00
Kijin Sung
94069ebfd6 Ensure compatibility with point triggers 2023-06-22 00:59:20 +09:00
Kijin Sung
002f62ad8f Fix capitalization of class names in Point module 2023-06-19 13:42:18 +09:00
Kijin Sung
2c1552a523 Move PointController::_getModulePointConfig() to PointModel, where it would be more appropriate 2023-06-19 13:40:36 +09:00
Kijin Sung
2b8f5ca947 Update point triggers to use diff syntax for giving and taking points 2023-06-19 13:35:25 +09:00
Kijin Sung
833ba2390a Allow points to be updated in SQL without replacing current value 2023-06-19 13:25:22 +09:00
Kijin Sung
37b0d3a1e6 Remove trailing whitespace 2023-01-30 21:43:21 +09:00
Kijin Sung
16b693c7c7 Delete unnecessary variable #1942
- 이 변수는 권한 컨트롤에 사용하지 않고 있으므로 삭제
- 버그를 해결하는 것은 아님
2022-07-03 01:19:09 +09:00
Kijin Sung
7e82d37cfa Fix PHP warnings due to unitiated variables #1866 thanks to @Erictoby 2022-02-04 01:41:56 +09:00
Kijin Sung
9ba8c9159e General cleanup of point diff logic 2020-12-15 23:46:50 +09:00
Kijin Sung
a43f0368ec Fix #1341 also calculate point difference accurately when new file is uploaded to a comment 2020-12-15 23:39:25 +09:00
Kijin Sung
367635d21b Fix #1341 calculate point difference accurately when files are deleted and re-attached 2020-12-15 23:31:00 +09:00
Kijin Sung
133c29012b Provide MemberController::clearMemberCache() 2020-10-30 01:16:14 +09:00
Kijin Sung
177a6c6b7d Merge branch 'develop' into next 2020-09-29 00:23:30 +09:00
Kijin Sung
c34a9a9005 Fix different relative paths of point cache file 2020-09-28 00:55:55 +09:00
Kijin Sung
34eb311ac0 Merge branch 'develop' into next 2020-05-26 09:00:15 +09:00
Kijin Sung
5cd1cc53a5 Fix #1298 array/object confusion in point module 2020-05-26 08:25:05 +09:00
Kijin Sung
b419dcf2bc Merge branch 'develop' into next 2020-05-24 21:29:08 +09:00
Kijin Sung
f6d4de8e70 Change method calls to static in point module 2020-05-24 20:49:09 +09:00
Kijin Sung
2e2e11618b Fix inconsistent data type for point module part config 2020-05-24 11:00:50 +09:00
Kijin Sung
0a9d34c37f Add option to control taking points when a post is deleted 2019-07-27 22:49:08 +09:00
Kijin Sung
bc14eecd50 Add point exception for reading notices #1124 2018-12-14 12:16:04 +09:00
Kijin Sung
4158d94606 Fix #1119 inconsistent point handling when moving comments in and out of Trash 2018-12-13 11:27:05 +09:00
BJRambo
2a472100ee 포인트 모듈의 setPoint 실행시 작동에 대한 최적화 2018-12-12 13:48:55 +09:00
BJRambo
ad4c79ce6d 포인트를 저장하는 부분에 적용여부를 확인하지 않는 문제 고침 2018-12-03 21:21:54 +09:00
conory
9fb23bd3dd 문서의 검색, 확장변수와 관련된 비효율적인 코드 정리
- setToAllDocumentExtraVars() 최적화
- 확장변수(-1, -2)를 이용한 문서 다국어 기능 관련 버그 수정 및 개선
- getDocumentList() 최적화 (비효율적인 코드 대거 삭제)
- _setSortIndex(), _setSearchOption() 최적화 (확장 변수 관련 쿼리들 정리)
- 권한자가 아니라면 공개글만 검색되도록 개선 (검색 옵션과 상관없이)
--- 문서 검색(제목+내용,내용,댓글)시 권한자도 비밀글을 검색할 수 없었던 문제 수정
- 'NOTICE Undefined variable' 조차 발생되지 않도록 getGrant() 수정
- '(포인트가 부족한 경우) 글 열람 금지' 옵션 사용시 본문 뿐만 아니라 확장 변수도 볼 수 없도록 숨김
- 기타 버그 수정 (많이 잡은 것 같은 데 정확히 기억안남ㅠ)
2018-06-28 19:59:21 +09:00
Kijin Sung
f359a3448c Improve point module
글 작성 후 x일 이후에는 댓글 작성 포인트를 부여하지 않는 기능을 확장하여
추천, 비추천, 글읽기 포인트에도 기간 제한을 둘 수 있도록 함.
2018-03-07 23:13:32 +09:00
Kijin Sung
9939b8b747 Add option to allow robots to read documents 2018-02-02 15:48:45 +09:00
Kijin Sung
7e74b45c5c Remove unnecessary reload of point from DB 2018-01-31 23:37:32 +09:00
Kijin Sung
0b9a3fd56c Implement giving points to author and/or uploader when their document is read or their file is downloaded 2018-01-31 23:35:59 +09:00
Kijin Sung
08f6902798 Implement giving points to the voter 2018-01-31 18:37:10 +09:00
Kijin Sung
2f3f1d4be0 Use object cache for member point
오브젝트 캐시 사용시 회원 포인트를 캐시에 저장하도록 변경하여
불필요한 캐시 파일이 다량으로 생성되는 것을 방지함.
2017-12-19 23:53:30 +09:00
Kijin Sung
84e5542d77 Remove unnecessary use of BaseObject
- 트리거 등 반환값이 필요하지 않은 곳에서 new BaseObject()를 반환하는 것 삭제
- 모듈 설치, 업데이트 후 무의미한 new BaseObject()를 반환하는 것 삭제
- 사용자에게 에러 메시지를 돌려주는 용도로 new BaseObject(-1, '에러메시지')를
  사용하는 경우는 대부분 $this->setError()로 변경함. 언어 변환과 sprintf()
  처리까지 한 번에 이루어지므로 이쪽이 더 편리함.
2017-12-01 00:54:51 +09:00
BJRambo
f3f40f6859 php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경 2017-11-28 20:01:28 +09:00
Kijin Sung
87648f49d4 Fix point for attached files when updating document 2017-03-02 18:03:14 +09:00
Kijin Sung
dafbfadc93 Add option to keep existing group when point is reduced #610 2017-03-02 17:47:50 +09:00
Kijin Sung
e370ba680f Improve shared caching and invalidation of member points 2017-03-02 16:52:33 +09:00
Kijin Sung
5b22b0399c Fix double-deduction of comment points on document deletion 2017-03-02 16:45:15 +09:00
Kijin Sung
0d2db40e02 Don't double-subtract points when deleting document or comment with attached files 2017-03-02 16:35:35 +09:00
Kijin Sung
da2be81260 Add and subtract points for comment attachments 2017-03-02 16:30:57 +09:00
Kijin Sung
590b11aa23 Refactor all remaining triggers in Point module 2017-03-02 16:09:38 +09:00
Kijin Sung
0b71f425ed Cache module config in point triggers 2017-03-02 15:03:45 +09:00
Kijin Sung
d4136f9081 Refactor triggerInsertMember() and triggerAfterLogin() 2017-03-02 14:57:43 +09:00
Kijin Sung
d4ccf4222d Refactor triggerUpdateVotedCount() 2017-03-02 14:15:04 +09:00
Kijin Sung
c86c3a16de Implement _getModulePointConfig() and clean up read/download triggers 2017-03-02 13:11:21 +09:00
Kijin Sung
4ddf8cf91f Fix #735 downloading files without points
- 포인트 부족시 다운로드를 금지하더라도 비회원에게 적용되지 않는 문제 해결
- 비회원이 첨부한 파일을 비회원이 다운로드하는 경우 적용되지 않는 문제 해결
- 해당 트리거 구조개선 및 주석 수정
2017-03-02 11:43:56 +09:00
Kijin Sung
48e4746f7d Automatically exclude deleted groups from point/level/group integration 2016-07-22 16:11:25 +09:00
BJRambo
508b6ed340 Fix uninitialized stdClass in rarely used method 2016-05-27 07:57:58 +09:00
Kijin Sung
eb895f76cd Do not rollback if an 'after' trigger returns error 2016-05-14 20:24:45 +09:00
Kijin Sung
2f234dfad1 Update references to CacheHandler in several modules 2016-04-18 00:55:29 +09:00