Config: FileWriter
Published on by Greg Bowler
Now the library reads in from .dev, .deploy and .prod ini files, it is possible to write to these files too, which is intended to enhance continuous deployment tasks.
Published on by Greg Bowler
Now the library reads in from .dev, .deploy and .prod ini files, it is possible to write to these files too, which is intended to enhance continuous deployment tasks.
Published on by Greg Bowler
Published on by Greg Bowler
Published on by Greg Bowler
-t prefix when XPath name usedPublished on by Greg Bowler
query function as variable arguments, the key-value-pairs will be merged into one parameter binding.Published on by Greg Bowler
This feature release contains enhanced migration functionality, along with some small refactorings.
Client class is more meaningfully renamed to DatabasePublished on by Greg Bowler
This pre-release fully tests the Session class itself while fixing any bugs or design changes that came up in the testing process.
Published on by Greg Bowler
Test coverage has been improved, along with improvements to two key functions:
has, the new hasValue function is introduced (issue #17)when function can be set to trigger on just a key’s presence, rather than a key’s value (issue #15)Published on by Greg Bowler
Published on by Greg Bowler
Thanks to @jaroslavtyc for catching a bug that affected getting ID by magic __get access. The PHP return type now allows the correct nullable type for when there is no element by the provided ID.
Dependencies have been bumped up with this minor release.
Published on by Greg Bowler
A bug has been resolved that prevented I.E. and Edge from storing the session cookie correctly. This was due to the “path” parameter of the Set-Cookie header to be incorrectly sharing the on-disk path of the session file. Other browsers seemed to allow this, but has been fixed now.
Published on by Greg Bowler
innerText synonymous for textContent on ElementgetAttribute compatibility with DOM Level 4nullNodeList bug fixed where Countable affects Iterator keyPublished on by Greg Bowler
Components behave better when mixed with templates.
Notably, a component can be nested within a template element, and its value will be expanded as soon as the template is used, rather than when the template is rendered to the page. This allows the developer to manipulate the contents of the component on-the-fly.
Published on by Greg Bowler
To allow this project to be composed into other projects, the bin script is now exposed in composer.json.
Published on by Greg Bowler
This is the final new feature towards v1 release.
It adds support for array fields using square-bracket notation.
More tests will be written and example applications will be created before v1 release.
Published on by Greg Bowler
when in the trigger.InputData.Published on by Greg Bowler
The main changes in this release consist of the way the three array-like objects are handled internally; QueryStringInputData, BodyInputData and FileUploadInputData now all extend the same base class, InputData allowing a consistent API with extended functionality where necessary.
FileUploadInputData is a new array-like object used to access the user-uploaded files, introduced by this release. The object unwraps the $_FILES superglobal into a data structure that makes sense, finally representing the individual files as FileUpload objects.
Published on by Greg Bowler
Two issues have come together to drastically improve the library:
FileUpload support is required now that key-value-pairs work. An improvement to how callbacks are triggered required refactoring. This update includes a large refactor compromising mainly of the following:
Classes broken out into more granular parts. Namespaces bundle similar classes together. All user input types, including FileUpload, extend common base class AbstractInputData. All values of user input are handled as InputDatum instances.
Published on by Greg Bowler
This first release marks the first working version of a SessionHandler implementation: FileHandler.
There are currently 0 tests as this class was built as an explorative feasibility idea. Now we have a working session class, tests can be written and depending on the number of issues caught, we can drive towards a v1 release pretty quickly.
Published on by Greg Bowler
Manually tested and amended for Linux, Mac and Windows builds.
Published on by Greg Bowler
Published on by Greg Bowler
The CookieHandler class is what is used to interface with cookies, and behaves just like the $_COOKIE superglobal so it is easy to get used to.
Published on by Greg Bowler
The Cookie object is a very simple object that acts as a representation of a key value pair, but with the immutable object pattern to avoid other classes editing their value on-the-fly.
“The practice by which changes result in a new instance is termed immutability, and is a feature designed to ensure the integrity of a given value”.
This is important with Cookies, because once they are set on the Request/Response, they object representation shouldn’t be changed without being set again.
Published on by Greg Bowler
The initial functionality was scoped out, but when implementing with the real $GLOBALS array, a few changes were necessary.
This release marks the initial scope for the repository. Before v1 is near there needs to be tests for edge cases and more usage with the real $GLOBALS array throughout the WebEngine.
Published on by Greg Bowler
The final planned feature for v1 is now implemented: bindable class lists.
Automatically toggle a class name of an element depending on a truthy value of the dataset.