1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 02:04:35 +02:00

1598 Commits

Author SHA1 Message Date
Ryan Cramer
3aacccedb1 Update $pages API to add getID() and getByIDs() methods, and add $pages->parents() method for direct access to methods in new PagesParents class 2020-05-14 12:09:06 -04:00
Ryan Cramer
5b31d9939b Update PagesLoader with minor improvements for getById() method and add new getNativeColumnValue() method 2020-05-14 12:06:42 -04:00
Ryan Cramer
fd2a06d4b2 Continued updates to new PagesParents class and update PagesEditor to use it 2020-05-14 12:05:30 -04:00
Ryan Cramer
851969c9e0 Add new PagesParents helper class for $pages API, accessible at $pages->parents()->methods. This class takes over management of the pages_parents table and related functionality. 2020-05-13 15:40:01 -04:00
Ryan Cramer
c790d31b8f Add Selectors::getReservedChars() method to keep track of reserved characters and their usages in selectors 2020-05-01 16:40:41 -04:00
Ryan Cramer
99f5d59ce4 Some updates to base DatabaseQuery class to improve bound value support among other things 2020-05-01 16:39:34 -04:00
Ryan Cramer
d07ba2661d Update WireHttp to allow for custom "setopt" options when using CURL 2020-05-01 15:44:29 -04:00
Ryan Cramer
6ae08c901b Fix issue processwire/processwire-issues#1162 and maybe (?) processwire/processwire-issues#1086 2020-04-27 15:59:00 -04:00
Ryan Cramer
a157e690fa Bump version to 3.0.155 2020-04-24 15:36:40 -04:00
Ryan Cramer
57f228b600 Add new $input->canonicalUrl() method and add lots more options for $input->urlSegment() method. Also add urlSegment1(), urlSegment2(), etc. methods for same arguments/support as urlSegment() method but focused on specific segment number. 2020-04-24 13:05:37 -04:00
Ryan Cramer
e6551c9b4f Minor improvements to $page->url() method options for URL segments and pagination numbers. 2020-04-24 13:00:08 -04:00
Ryan Cramer
e36667624f Fix typo in phpdoc of Template.php 2020-04-24 12:37:10 -04:00
Ryan Cramer
670916e730 Bump version to 3.0.154 2020-04-17 15:29:10 -04:00
Ryan Cramer
dde4c92b78 Update core Debug class to use PHP 7.3 hrtime() function for timers (rather than microtime), when available. Also add support for configuring timer precision via Debug::timerSetting('precision', $n) where $n is number of decimals. Default is 4. 2020-04-17 08:21:23 -04:00
Ryan Cramer
89dbf0f96c Several updates to core/LanguageFunctions.php with biggest being the option to programmatically replace translation text (whether multi-language support is installed or not), useful for very easily updating core/module output to say exactly what you want, and without needing to install multi-language modules. Also moved the __() configuration options to dedicated methods which makes it more clear to use, as well as much better for documentation purposes: wireLangEntityEncode(), wireLangTranslations(), wireLangReplacements(). 2020-04-17 08:06:02 -04:00
Ryan Cramer
f9337d77a5 Minor adjustments in Pageimage and Pagefile classes 2020-04-15 16:40:12 -04:00
Ryan Cramer
b44669397a Fix issue processwire/processwire-issues#1119 2020-04-15 16:37:09 -04:00
Ryan Cramer
6bd7901011 Fix issue processwire/processwire-issues#1122 2020-04-15 16:33:57 -04:00
Ryan Cramer
29fbf0b2f7 Fix issue processwire/processwire-issues#1073 2020-04-15 16:19:23 -04:00
Ryan Cramer
20cdbea7a8 Fix issue processwire/processwire-issues#1143 2020-04-15 15:58:29 -04:00
Ryan Cramer
ff6ec3b1b5 Update InputfieldWrapper so that it supports the "name=field_name" => [ settings ] calls for setMarkup(), like in LoginRegisterPro 2020-04-13 16:18:19 -04:00
Ryan Cramer
00de278dc7 Update FieldtypeImage and Pageimage to support new searchable width, height and ratio properties in the DB schema. These will become more useful over time as files are uploaded/saved and new info populates. 2020-04-10 12:48:28 -04:00
Ryan Cramer
359baa14dc Update FieldtypeFile along with Pagefile and Pagefiles classes to support additional DB schema for filesize, created_users_id and modified_users_id. Also adds new related API methods. 2020-04-10 12:45:00 -04:00
Ryan Cramer
9cd3fa677b Add a Selectors::getOperators() method that provides a lot of options for retrieving info about available operators 2020-04-10 12:42:16 -04:00
Ryan Cramer
9040bdc8d4 Update base Selector class so that descending classes can self identify the type of comparison they are performing 2020-04-10 12:41:05 -04:00
Ryan Cramer
48bb7c1734 Add a new $database->columnExists() method, plus a couple other unrelated minor adjustments 2020-04-10 12:40:15 -04:00
Ryan Cramer
ac7c9da4d1 Update FieldtypeMulti to isolate some existing functionality into dedicated methods for better reusability 2020-04-10 12:38:21 -04:00
Ryan Cramer
9a1f842437 Additional upgrades to FieldtypeComments and its related classes 2020-04-03 09:18:39 -04:00
Ryan Cramer
d3bbf6577e Fix issue where WireShutdown in fatal error state didn't use http 500 header when debug mode was on 2020-04-03 09:13:14 -04:00
Ryan Cramer
1c68448267 Refactoring of and improvements to the core TemplateFile class 2020-04-03 08:34:30 -04:00
Ryan Cramer
03effce1bd Update Page class so that createdUser/modifiedUser properties can be accessed internally (i.e. $this->modifiedUser) from classes that extend Page class. Also minor adjustment to PagePathHistory DB schema (not necessary to change existing installs) 2020-03-27 16:12:17 -04:00
Ryan Cramer
3c767e3fda Remove these newly added methods for now to focus and evaluate a little later (WireFileTools) 2020-03-27 16:08:24 -04:00
Ryan Cramer
be81265ee7 Add feature request for $files->pathToUrl() and $files->urlToPath() methods 2020-03-25 09:29:49 -04:00
Ryan Cramer
78b7d198a7 Update HookEvent::removeHook($key) so that it also accepts itself (HookEvent instance) as the $key 2020-03-25 09:28:45 -04:00
Ryan Cramer
f54342a20c Fix issue in Paths.php where getting URL for 'http[ModuleName]' incorrectly returned error 2020-03-25 09:27:37 -04:00
Ryan Cramer
278d323acd Bump version to 3.0.153 2020-03-20 15:36:10 -04:00
Ryan Cramer
833736a1fc Refactoring and optimizations to PagesLoader class, plus addition of a new $pages->has('selector') API method that enables you to quickly check if a page exists matching a selector. This is an alternative to using the $pages->count() method which is what you would have previously used for this. But the $pages->has() method can do it more quickly than $pages->count(), if all you need to know is if a page exists. As a bonus, it returns the first found page ID, so this method essentially does the same thing as a $pages->getID() method (if such a method existed). 2020-03-20 15:29:51 -04:00
Ryan Cramer
1020fb84e7 Update PageFinder to support option for returning all columns in pages table for matching pages 2020-03-20 14:15:29 -04:00
Ryan Cramer
542e138e42 Refactoring of core Template class to improve, optimize and simplify it, plus add new dedicated methods for childTemplates(), parentTemplates(), and allowNewPages(). 2020-03-20 14:13:33 -04:00
Ryan Cramer
00b89f71b3 Prevent an exception from getting thrown in one part of Pageimage where it's preferable for the error not to be fatal 2020-03-13 13:05:34 -04:00
Ryan Cramer
ffc7e6fb86 Upgrade $pages->uncache() method so that it can also accept page IDs in addition to Page objects 2020-03-13 12:43:44 -04:00
Ryan Cramer
d793249f86 Bump version to 3.0.152 2020-03-06 16:49:48 -05:00
Ryan Cramer
273183ddfb Add support for custom Page classes 2020-03-06 14:13:22 -05:00
Ryan Cramer
15793931f4 Major improvements to InputfieldDateTime including a significant refactoring, adding support for HTML5 date/time input types, and a new date selection input using separate selects for month, day and year 2020-03-06 14:04:17 -05:00
Ryan Cramer
de5b7d9207 Update PageFinder and add dedicated abilty to include template IDs alongside page IDs as a finder option 2020-03-06 13:48:38 -05:00
Ryan Cramer
19d8d944bf Refactoring of WireClassLoader class ($classLoader API var) plus improvements and ability to support autoloading via class Prefix or Suffix 2020-03-06 13:46:22 -05:00
Ryan Cramer
765f42a4dc Various minor adjustments, code plus improvements to ProcessSessionDB module 2020-03-06 13:45:36 -05:00
Ryan Cramer
f584ec5317 Move the requiredAttr Inputfield config option from InputfieldText into Inputfield so that it can be used on other Inputfield types 2020-02-28 16:38:55 -05:00
Ryan Cramer
60d62ea3a1 Bump version to 3.0.151 2020-02-21 15:35:37 -05:00
Ryan Cramer
3670031682 Fix issue processwire/processwire-issues#1091 2020-02-21 12:10:24 -05:00