Commit graph

96 commits

Author SHA1 Message Date
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
conory
90400e2b5f 모두 lang() 함수로 변경 2016-03-06 17:01:15 +09:00
qw5414
a56954684a 포인트 지급 방식 변경, 댓글 수정 허용 관련 문제점 개선 2016-02-09 02:11:29 +09:00
qw5414
d641e2cc0e 트리거를 사용하여 포인트를 회수할 수 있도록 개선. 2016-01-22 19:41:51 +09:00
Kijin Sung
e0cf434908 Merge #1694 fix #1662 임시 저장글을 삭제할 때에는 포인트 증감 처리를 하지 않도록 수정 by YJSoft
* pr/1694:
  fix #1662 임시 저장글을 삭제할 때에는 포인트 증감 처리를 하지 않도록 수정
2015-10-08 15:08:37 +09:00
Kijin Sung
a215c41503 Merge #939 댓글에 대한 추천, 비추천시 증감할 포인트 별도 설정 기능 및 포인트 변동 구현 by sejin7940
* pr/939:
  Update point.admin.controller.php
  Update module_config.html
  Update point.view.php
  Update point.admin.controller.php
  Update point_module_config.html
  Update point.controller.php
  Update config.html
  Update point.class.php

Conflicts:
	modules/point/point.admin.controller.php
	modules/point/point.class.php
2015-10-08 14:05:57 +09:00
YJSoft
203d284a7a fix #1662 임시 저장글을 삭제할 때에는 포인트 증감 처리를 하지 않도록 수정
임시 저장글 작성시에는 포인트가 주어지지 않는데, 글 삭제시에는 임시 저장글 여부와 상관없이 포인트를 차감합니다.
이를 수정합니다.
2015-08-05 18:08:22 +09:00
sejin7940
9e678a8da9 Update point.controller.php 2015-02-17 14:53:49 +09:00
akasima
3fb8847d58 #1038 point에 의해 글을 읽을 수 없을 때 트리거에서 에러 리턴 2015-01-12 19:53:38 +09:00
sejin7940
717ab0a8ab Update point.controller.php 2014-08-30 20:48:12 +09:00
BJRambo
eec20ea827 PHP 5.4 reduce error of Create default object. 2014-06-22 22:10:44 +09:00
YJSoft
31a85815eb point 모듈 php 5.4 호환성 개선 2014-04-14 14:59:50 +09:00
bnu
5809256d32 #385 member_groups, member_info cache를 point모듈에서 불필요하게 갱신하지 않도록 개선 2014-01-31 02:07:59 +09:00
bnu
77efe4870e Revert "NOISSUE point 모듈에서 modulePartConfig 변수를 잘못 사용하는 문제 수정."
This reverts commit b75386bc42.
2014-01-09 17:50:57 +09:00
bnu
b75386bc42 NOISSUE point 모듈에서 modulePartConfig 변수를 잘못 사용하는 문제 수정. 2014-01-09 15:19:26 +09:00
bnu
cfe021d2ce #242 member_info 캐시는 file cache에서 제외. 2014-01-09 01:20:37 +09:00
bnu
37c5e114ec #242 object cache 정리 2014-01-08 13:38:24 +09:00
bnu
21ccd7f0d3 #242 자주 사용되는 데이터를 file cache를 이용하도록 개선. 2014-01-08 13:38:23 +09:00
bnu
194ce8614a NOISSUE remove reference operator. 2013-12-30 17:35:02 +09:00
bnu
57687c15bc fixed #27 pointController:setPoint()에 트리거 추가. 2013-11-19 22:30:41 +09:00
akasima
bce0a0b6d4 copyright add to php files
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13186 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-08 05:52:51 +00:00
ngleader
dbc18a4f99 change author
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13180 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-07 02:42:42 +00:00
misol
f70ce644ce Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-09-25 15:29:32 +00:00