Skip to content

5.1.0

Compare
Choose a tag to compare
@jeyroik jeyroik released this 20 Apr 10:11
· 160 commits to master since this release
  • Added Json.
  • Added __toJson() method into IItem.

Added Json

Added wrapper for json_encode: extas\components\Json.

Features:

  • While encoding IItem call __toJson method.
  • Whilde decoding into an array, if result contains extas\interfaces\IJson::MARKER__CLASS, return an instance of class.

Added __toJson

  • This method calling while json_encoding (see IJson).
  • You also can call this method manually.
  • Stage <entity>.to.json is also added.