Commit graph

269 commits

Author SHA1 Message Date
Kijin Sung
141ee7f7e1 Clean up missing or inconsistent types in Lang, ModuleAction, ModuleInfo parser classes 2023-10-03 16:25:35 +09:00
Kijin Sung
df6fdd3bc3 Fix potential type error in editor component XML handling logic 2023-10-03 16:19:04 +09:00
Kijin Sung
db4e874660 Fix incorrect type declaration in XMLRPC parser 2023-10-03 16:18:37 +09:00
Kijin Sung
b6e8d41be8 Add type hints and use class constants where applicable in Rhymix Framework 2023-10-03 02:33:24 +09:00
Kijin Sung
0d8b8a51dd Improve parser logic for action attributes 2023-08-30 01:53:55 +09:00
Kijin Sung
ec36839303 Add options in module.xml to disable session and Cache-Control headers for individual actions 2023-08-30 01:45:37 +09:00
Kijin Sung
31fd79c71e Fix default value handling for #2169 2023-08-27 23:43:22 +09:00
Kijin Sung
3fbb1327d2 Fix #2169 allow simple expressions as default values for table columns 2023-08-27 23:38:29 +09:00
Kijin Sung
47996cb294 Prevent Rhymix reserved namespaces from being registered as custom 2023-08-12 09:50:10 +09:00
Kijin Sung
3241354872 Support customizing the default (base) class and install class of a module 2023-08-11 22:09:26 +09:00
Kijin Sung
7502b7308b Support custom namespaces in ModuleHandler and related processes 2023-08-11 21:56:42 +09:00
Kijin Sung
9e13c5ee6e Add convenience functions for XML parsing 2023-08-11 02:37:39 +09:00
Kijin Sung
d0306df095 Add parser logic for new module.xml settings 2023-08-10 23:52:01 +09:00
Kijin Sung
e3ce2bcbcc Remove gzip support; rely on webserver instead 2023-06-18 23:05:16 +09:00
Kijin Sung
0484d8db27 Fix #2111 IDN not being accepted in queries 2023-05-06 22:01:11 +09:00
Kijin Sung
a9f72a5cd2 Remove trailing whitespace 2023-01-17 20:57:44 +09:00
Kijin Sung
33b58b5e77 Convert ?: to ?? 2023-01-16 22:31:50 +09:00
Kijin Sung
4c15e8fef5
Merge pull request #2066 from Waterticket/develop
fix deprecated warnings
2023-01-16 22:27:24 +09:00
Kijin Sung
c07efe7905 Fix deprecation notices in PHP 8.2 #2064 2023-01-16 21:24:59 +09:00
Waterticket
f58e865f4d fix deprecated warnings 2023-01-16 09:29:34 +00:00
Kijin Sung
5f4e7946a3 Fix deprecation warning in PHP 8 2023-01-06 18:37:02 +09:00
Kijin Sung
0029d1a1ec Rename all common/framework source files to be case-sensitive 2022-12-26 16:13:09 +09:00
Kijin Sung
23a827923e Support timestamp() with customizable format in XML query 2022-12-24 22:38:18 +09:00
Kijin Sung
4cc730e489 Support order_default attribute to <index> tag in XML query 2022-12-18 01:18:55 +09:00
Kijin Sung
4926a44ecc Fix warnings when executing unusual queries 2022-11-22 13:34:17 +09:00
Kijin Sung
b8641c3501 Use constants to control alias handling (#1956 보완) 2022-07-03 17:48:52 +09:00
dewekk
ecda6ddcb8 Update 쿼리에서 alias 기본 값 사용 안 함 2022-06-02 17:21:28 +09:00
dewekk
4907e293de
Use alias in Update Query 2022-05-31 10:54:56 +09:00
Kijin Sung
237134f64d Fix #1897 incorrect error message when query variable exceeds maxlength 2022-03-11 01:43:26 +09:00
Min-Soo Kim
21c176313f
에디터 컴포넌트 등에서 extravars 항목 중 type이 설정되지 않은 경우에 대한 수정 (#1872)
에디터 컴포넌트 등의 설정 xml 에서 type이 설정되지 않은 경우 `text` 가 기본 값.
https://github.com/rhymix/rhymix/issues/1871
2022-02-04 17:07:22 +09:00
Kijin Sung
a9821b815d Order table creation by foreign key dependency 2022-01-27 21:20:51 +09:00
Kijin Sung
7f6e020d97 PROPERLY fix null value handling in both read and write queries 2022-01-25 14:54:17 +09:00
Kijin Sung
7f5f67992d Revert "Fix incorrect querystring when comparing column against null value"
This reverts commit a6f771c155.
2022-01-25 14:15:08 +09:00
Kijin Sung
a6f771c155 Fix incorrect querystring when comparing column against null value 2022-01-20 16:37:12 +09:00
Kijin Sung
f7146a4791 Fix #1778 support multi-column unique indexes using legacy syntax 2021-08-26 00:44:13 +09:00
Kijin Sung
df9e990fdc Fix fatal error when module.xml contains invalid menu reference
https://xetown.com/questions/1588670
2021-07-03 16:30:39 +09:00
Kijin Sung
6a4d3d912c Fix #1706 support default="null" in XML query parser 2021-06-19 20:26:09 +09:00
devdho
d6d705706c Add ifvar attribute to query condition 2021-06-17 11:24:58 +09:00
Kijin Sung
741a714abd Set standalone attribute to 'auto' if new class syntax is used in module.xml
- 새로 추가된 클래스 문법 사용시 standalone 속성 기본값은 true가 아닌 auto로 지정

- standalone 속성의 의미는 아래와 같음
  - true: 항상 접근 허용 (기존 방식으로 선언한 액션의 기본값)
  - false: mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
  - auto: module 또는 mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
    (즉, false와 비슷하지만 exec_json 함수 등에서 module+act로 호출하는 경우에는
    mid가 없더라도 module만 일치하면 호출할 수 있도록 허용하여 개발 편의를 높임)

- 단, global_route 속성이 있는 경우 standalone 속성 기본값은 true임
  (전역 짧은주소는 mid 없이 호출될 수밖에 없으므로)
2021-04-20 21:45:21 +09:00
Kijin Sung
73695ccdd2 For backward compatibility, allow both GET and POST if an action does not specify method 2021-04-12 22:21:58 +09:00
Kijin Sung
62d9befb0d Support custom classes in module.xml 2021-04-12 21:03:03 +09:00
Kijin Sung
6b6c0eacfc Fix SQL error when list count is 0 2021-02-26 16:25:11 +09:00
Kijin Sung
6b7486e74f Add 'ifvar' attribute to most query elements
XML 쿼리에서 'ifvar' 속성을 사용하여, 특정 변수가 있을 때만 유효한 테이블이나
컬럼, 인덱스 힌트 등을 지정할 수 있도록 합니다. 어떤 변수를 넣는지에 따라
<condition> 뿐 아니라 <table>, <column>, <index_hint? 등의 적용 여부도
XML 쿼리 수정 없이 자유롭게 컨트롤할 수 있게 됩니다.
2021-02-09 21:58:07 +09:00
Kijin Sung
800f323b9c Fix count error when searching by extra_vars
https://xetown.com/questions/1519425
2021-01-31 01:34:56 +09:00
Kijin Sung
957be16a25 Replace all wildcard columns with '1' in count-only subquery #1575 2021-01-29 14:40:28 +09:00
Kijin Sung
60465fb2db Fix various warnings in PHP 8.0 2021-01-28 22:32:56 +09:00
Kijin Sung
9bedd75a37 Wrap count query if there is a subquery column #1575 2021-01-24 11:00:09 +09:00
Kijin Sung
d7b9e0aa46 Change === to == because size can be a string 2021-01-22 01:10:23 +09:00
Kijin Sung
09a292440c Also restrict the charset if a column is defined as char(1) 2021-01-22 01:05:52 +09:00
Kijin Sung
2cec4ea6b4 Clean up utf8mb4 setting in default table schema 2021-01-22 01:01:58 +09:00