Skip to content

Releases: gocom/rah_function

0.8.1

Choose a tag to compare

@github-actions github-actions released this 24 Feb 23:01
  • PHP >= 8.0 compatibility. In PHP 8.0 or greater, the tag attributes would be passed down as named arguments to functions. This would cause fatal error in cases where the names did not match. To mitigate the issue, this release reverts back to pre-8.0 behaviour where the attributes are passed based on their order rather than argument name.

0.8.0

Choose a tag to compare

@gocom gocom released this 17 Apr 00:19
  • Register the tag.
  • Called function name can be set with the first boolean attribute if call is omitted.
  • Supports boolean attributes as arguments.
  • Now requires Textpattern 4.7.0 or newer.

0.7.2

Choose a tag to compare

@gocom gocom released this 20 Mar 15:21

Changes:

  • Fixed: error in composer.json file that prevented the plugin from being installed with Composer.

Install using Composer:

$ composer require rah/rah_function:0.7.2

0.7.1

Choose a tag to compare

@gocom gocom released this 20 Mar 15:07

0.7.0

Choose a tag to compare

@gocom gocom released this 20 Mar 15:07
  • Added: _constant attribute prefix.
  • Added: _assign attribute.
  • Released as a Composer package.

0.6.0

Choose a tag to compare

@gocom gocom released this 20 Mar 15:16
  • Updated: Readme. Thank you, Ralitza.

0.5.0

Choose a tag to compare

@gocom gocom released this 20 Mar 15:15
  • Added: Ability to call class methods (call="Class->Method" and call="Class::StaticMethod").
  • Added: Multiple functions can be called with a single tag instance (call="func1, func2, func3"). Output is passed by reference from function to function. First function in the list is treated as the primary and given tag attributes only apply to it.
  • Added: Arrays are returned as JSON string and can be passed from one tag instance to other. JSON can be used as a value by prefixing used tag attribute name with _array.
  • Added: Converts returned booleans to uppercase strings, TRUE and FALSE. This makes it possible to identify integers from booleans (e.g. strpos).
  • Added: Function whitelisting option.
  • Improved: Prevent passing non-scalars to the template.
  • Improved: Moved away from sanitization and eval(). Now uses callbacks.
  • Improved: Show some error messages when needed.
  • Updated: Readme. Thanks to Tye for help.

0.4.0

Choose a tag to compare

@gocom gocom released this 20 Mar 15:13
  • Improved: Do not use attributes real names in the function call, but use an temp array. Makes sure attributes get resolved as valid variables no matter what is passed by Textpattern's parser to the plugin.

0.3.0

Choose a tag to compare

@gocom gocom released this 20 Mar 15:13
  • Fixed: Now an empty, nothing-at-all string can be used as the container mode's wrapped statement.
  • Added: Now makes sure that the called function is really defined before executing anything.

0.2.0

Choose a tag to compare

@gocom gocom released this 20 Mar 15:12
  • Added: thing attribute. Thanks you for the suggestion, Ruud.