1257 Commits

Author SHA1 Message Date
Giuseppe Criscione
b5c522033a Add AbstractPage::uid() 2020-12-14 09:50:33 +01:00
Giuseppe Criscione
0f17a9410d Rename Page::id() to Page::name() 2020-12-13 23:18:29 +01:00
Giuseppe Criscione
ae222d2de3 Fix PageCollection::sort() using id as default property, returning as adjacent pages in completely different places within hierarchy 2020-12-13 22:46:50 +01:00
Giuseppe Criscione
0992ff4e4f Fix terminology of deprecation messages 2020-12-13 17:49:37 +01:00
Giuseppe Criscione
24de777fe2 Prevent direct access to .php files 2020-12-13 17:42:47 +01:00
Giuseppe Criscione
4001902397 Export admin view helpers to separate file 2020-12-13 17:40:36 +01:00
Giuseppe Criscione
ef664e3dc8 Export helpers to separate file 2020-12-13 16:50:14 +01:00
Giuseppe Criscione
f29980116c Add parentheses after __METHOD__ for consistency 2020-12-13 16:26:06 +01:00
Giuseppe Criscione
7da121a2a0 Update exception message in Image::initialize() 2020-12-13 16:23:44 +01:00
Giuseppe Criscione
68234623c8 Deprecate the possibility to return an array or a string with MimeType::toExtension() 2020-12-13 16:06:49 +01:00
Giuseppe Criscione
305546e45b Fix return type 2020-12-13 15:44:10 +01:00
Giuseppe Criscione
4982524e95 Throw an exception in MimeType::fromFile() when the extension fileinfo is not enabled 2020-12-13 15:32:40 +01:00
Giuseppe Criscione
8f9c0e7b20 Rename Uri::resolveRelativeUri() to Uri::resolveRelative() 2020-12-12 23:31:21 +01:00
Giuseppe Criscione
f087b460f8 Use Str::append() in Uri::normalize() 2020-12-12 23:29:40 +01:00
Giuseppe Criscione
5bfb2ccf16 Add focus styles to editor 2020-12-12 23:06:32 +01:00
Giuseppe Criscione
cf7135d4d7
Merge pull request #65 from getformwork/feature/duration-input
Add duration field
2020-12-12 20:04:49 +01:00
Giuseppe Criscione
7a02f7e961 Allow leading zeros for decimal numbers in DurationInput 2020-12-12 19:54:33 +01:00
Giuseppe Criscione
ca438fa3b7 Use blur event intead of change 2020-12-12 19:32:21 +01:00
Giuseppe Criscione
f51223db2f Remove leading zeros in DurationInput 2020-12-12 18:45:54 +01:00
Giuseppe Criscione
2275d2df48 Fix Utils.toSafeInteger() not converting to integer values 2020-12-12 18:44:25 +01:00
Giuseppe Criscione
18a42858a7 Rename display option to intervals in DurationInput 2020-12-12 15:58:29 +01:00
Giuseppe Criscione
90f3c19457 Add intervalNames argument to secondsToInterval() 2020-12-12 15:45:27 +01:00
Giuseppe Criscione
239029cfb2 Add duration strings to French translation 2020-12-12 15:16:43 +01:00
Giuseppe Criscione
00566b51a2 Make sure duration input value is always a safe integer 2020-12-12 14:56:31 +01:00
Giuseppe Criscione
d406b9d1c9 Fix Validator::parse() precision issues in casting to numeric types 2020-12-12 12:39:29 +01:00
Giuseppe Criscione
2f39580a45 Use duration fields in system options 2020-12-12 00:33:25 +01:00
Giuseppe Criscione
95f7cf6c97 Add duration field 2020-12-12 00:33:23 +01:00
Giuseppe Criscione
c98bb5833f Update Composer packages 2020-12-11 17:22:36 +01:00
Giuseppe Criscione
ac87d0a665 Update npm packages 2020-12-11 17:21:28 +01:00
Giuseppe Criscione
aa62c50b7b Encode empty arrays inline in PHP::encodeData() 2020-12-11 16:57:15 +01:00
Giuseppe Criscione
40f806d43b
Merge pull request #63 from getformwork/feature/improved-cache-serialization
Avoid serialization when possible by encoding data to PHP files (takes advantage of OPcache)
2020-12-11 16:41:54 +01:00
Giuseppe Criscione
6ba7b29430 Add Response::__set_state() 2020-12-10 23:06:17 +01:00
Giuseppe Criscione
f91d31f81d Use PHP parser instead of serialize() in FilesCache 2020-12-10 23:05:38 +01:00
Giuseppe Criscione
7bc54191d0 Add PHP parser class 2020-12-10 23:05:36 +01:00
Giuseppe Criscione
9702314c64 Remove superfluous argument 2020-12-10 23:02:04 +01:00
Giuseppe Criscione
cc929b4100
Merge pull request #60 from getformwork/feature/path-class
Add `Path` class to handle path manipulation
2020-12-10 19:41:27 +01:00
Giuseppe Criscione
febb34b6e0
Merge branch 'master' into feature/path-class 2020-12-10 19:41:16 +01:00
Giuseppe Criscione
90ce39ef81 Match backslash in Page::__construct() 2020-12-10 19:33:22 +01:00
Giuseppe Criscione
a36a2c67d3 Fix normalization after trimming separators in Uri::make() 2020-12-10 16:50:25 +01:00
Giuseppe Criscione
e2b35200c9 Fix SemVer::fromString() for PHP < 7.4 2020-12-08 19:26:31 +01:00
Giuseppe Criscione
0c41fd446e
Merge pull request #59 from getformwork/feature/updater-semver-parsing
Add SemVer parsing to ensure no future BC breaks occur with Updater
2020-12-08 17:39:25 +01:00
Giuseppe Criscione
914da11c2d Add Arr::isAssociative() 2020-12-08 13:43:45 +01:00
Giuseppe Criscione
60ce9c34dc Add date() and datetime() helpers to views 2020-12-07 22:43:53 +01:00
Giuseppe Criscione
49a30d28c4 Move view helpers to View::helpers() 2020-12-07 22:40:46 +01:00
Giuseppe Criscione
a9e8ad90cf Simplify Statistics::getChartData() 2020-12-06 16:58:51 +01:00
Giuseppe Criscione
c208789b43
Merge pull request #62 from getformwork/feature/improved-date-formats
Improve date formats handling
2020-12-06 16:45:36 +01:00
Giuseppe Criscione
bbf0446d38
Merge pull request #61 from getformwork/feature/stricter-date-parsing
Make date parsing stricter deprecating the use of invalid formats
2020-12-06 16:45:21 +01:00
Giuseppe Criscione
bb2c9217e5 Update AbstractController::defaults() 2020-12-06 16:39:00 +01:00
Giuseppe Criscione
716671ea6c Add formatToPattern(), patternToFormat(), formatDateTime() and formatTimestamp() to DateFormats class 2020-12-06 16:39:00 +01:00
Giuseppe Criscione
be55596b96 Add date.weekdays.long to translations 2020-12-06 16:39:00 +01:00