Releases: rawsrc/PhpEcho
Version 6.1.1 - Minor update: infinite loop detection as an option
Hi,
this version is a minor update, regarding some performance problems with the infinite loop detection feature.
This is now an option disabled by default to preserve the engine rendering speed.
Version 6.1.0
New version 6.1.0:
- Many code improvements
- Parameter the way the engine is looking for a user value
- Render any recursive array of
PhpEcho
blocks - Detect an infinite loop on rendering
- Cloning a
PhpEcho
block is now explicitly forbidden - Tests are updated
- Manual in English and French
Bugfix Release : 6.0.1
Minor bugfix in addBlock()
Version 6
Minor update: visibility access
Minor update, change the visibility access of the $data
array in the ViewBuilder
class from private
to public
.
You can still use the class as an array (the ArrayAccess
interface is preserved)
Tests files are updated
Version 5.4.1
This a bugfix release.
In the private method isArrayOfPhpEchoBlocks
, when the parameter was an empty array, you got a warning on rendering.
Test files are updated
Version 5.4.0
Add a new abstract ViewBuilder
class. The complex views (eg: pages) are now seen as a whole and can be used as object.
This class brings a cleaner solution for building heavy views.
Test files are updated to 5.4.0
Version 5.3.1
New option to return natively null when a key doesn't exist instead of throwing an Exception
By default this option is not activated.
To activate, use: PhpEcho::setNullIfNotExist(true);
; to deactivate, use: PhpEcho::setNullIfNotExist(false);
Test files are updated
Better parameters management
New version (5.3.0) with some useful enhancements for parameters management.
- The method
hasGlobalParam(string $name)
is nowstatic
- You can now define the seek order to get the first value either from the local or global context using
getAnyParam(string $name, string $seek_order = 'local'): mixed
- It's possible to set a parameter in the local and the global context at once using
setAnyParam(string $name, mixed $value)
- It's possible to unset a parameter from the local and the global context at once using
unsetAnyParam(string $name)
- It's possible to check if a parameter exist in the local or global context using
hasAnyParam(string $name): bool
Tests are updated
rawsrc
Version 5.2.1
Minor update
This version will not break the compatibility with the code for the previous version
Drastically improving the local and global parameters' management
- Add new method
getAnyParam(string $name)
that will return first the local value of the parameter if defined or the global value instead or throw finally an exception if the parameter is unknown - Offers the possibility to unset any local or global parameter using
unsetParam(string $name)
orunsetGlobalParam(string $name)
- You can now check if a parameter is defined either in the local or global array using
hasAnyParam(string $name)
Test files are updated