Skip to content

Releases: DivanDesign/EvolutionCMS.libraries.ddTools

Version 0.67.1

26 Nov 19:53

Choose a tag to compare

🇬🇧

  • * \DDTools\Storage\DB\Storage::items_update: Fixed UPDATE query execution bug in some MariaDB versions.

🇷🇺

  • * \DDTools\Storage\DB\Storage::items_update: Исправлена ошибка выполнения запроса UPDATE в некоторых версиях MariaDB.

Version 0.67

25 Nov 19:01

Choose a tag to compare

🇬🇧

  • + \DDTools\Tools\Objects::convertType → Parameters → $params->object → Valid values → object: Custom class instances are now also supported.

🇷🇺

  • + \DDTools\Tools\Objects::convertType → Параметры → $params->object → Допустимые значения → object: Теперь также поддерживаются экземпляры кастомных классов.

Version 0.66

22 Oct 13:27

Choose a tag to compare

🇬🇧

  • + \DDTools\Base\Base::getClassName() → Result → $result->namespacePrefixRoot: The new result property contains the root namespace prefix (e. g. '\\ddSendFeedback' of '\\ddSendFeedback\\Sender\\Email\\Sender').

🇷🇺

  • + \DDTools\Base\Base::getClassName() → Результат → $result->namespacePrefixRoot: Новое свойство, содержащее корневой префикс пространства имён (например, '\\ddSendFeedback' из '\\ddSendFeedback\\Sender\\Email\\Sender').

Version 0.65.3

08 Oct 09:32

Choose a tag to compare

🇬🇧

  • * \DDTools\Storage\DB\Storage: Works fine even if id column is not present in the table.

🇷🇺

  • * \DDTools\Storage\DB\Storage: Работает корректно даже если колонка id не существует в таблице.

Version 0.65.2

05 Oct 11:45

Choose a tag to compare

🇬🇧

  • * \DDTools\Storage\DB\Storage::items_add: $params->items[$itemIndex]->id is used if it is passed and validated via $this->items_validateData.

🇷🇺

  • * \DDTools\Storage\DB\Storage::items_add: $params->items[$itemIndex]->id используется, если он передан и валиден через $this->items_validateData.

Version 0.65.1

16 Jun 15:15

Choose a tag to compare

  • * \DDTools\Base\AncestorTrait::getChildClassName: The public static method is no longer final. Now child classes can override this method.

Version 0.65

28 Apr 11:56

Choose a tag to compare

  • + \DDTools\Base\Base::getClassName → Parameters → $classNameFull: The new optional parameter. Allows to specify custom class name, not current called only.
  • + \DDTools\Snippet::$paramsTypes[$paramName] → Valid values → 'float': The new supported value.
  • * PHP >= 7.4 is required.

Version 0.64.1

03 Dec 23:22

Choose a tag to compare

  • * \DDTools\Storage\DB\Storage: Column names are quoted in all queries to avoid of errors when their names are equal to some reserved keywords, e. g. repeat.

Version 0.64

06 Sep 01:06

Choose a tag to compare

  • + \DDTools\Tools\Objects::extend → Parameters → $params->extendableProperties: The new optional parameter. Allows to use for extending not all properties from additional objects or arrays (see README → Examples).
  • + \DDTools\Storage\Storageitems_update, items_updateOne, items_delete, items_deleteOne, items_get, items_getOne → Parameters:
    • + $params->where → Valid values → null: The new supported value. It is equal to ''.
    • + $params->where->{$propName}:
      • + You can also specify multiple value variants through an array.
      • + You don't have to worry about passing empty arrays, they will just be ignored.
  • + \DDTools\Tools\Cache:
    • + There are now 2 levels of caching: stable (file-based) and quick ($_SESSION-based). All methods now utilize both levels automatically.
    • + getSeveral: The new public static method. Retrieves data of several items from cache storage (see README).
    • + saveSeveral: The new public static method. Saves data of several items to cache storage (see README).
    • + save, saveSeveral, get, getSeveral, delete → Parameters → $params->resourceId → Valid values → string: The new supported value. You can use a custom string as the resource ID, not only an integer ID.
    • + getSeveral, delete → Parameters → $params->resourceId → Valid values → array: The new supported value. You can specify multiple IDs.
    • + delete → Parameters → $params->resourceId → Valid values → '*': The new supported value.
    • + save → Parameters → $params->isExtendEnabled: The new optional parameter. Allows to extend existing data (see README).

Version 0.63

02 Aug 14:25

Choose a tag to compare

  • + \DDTools\Tools\Cache: The new class. Allows you to cache some data (e. g. a snippet result) to a file in the assets/cache/ddCache folder (see README).
  • * \DDTools\Tools\Objects: The class has been renamed from \DDTools\ObjectTools (with backward compatibility).
  • * \DDTools\Tools\Files: The class has been renamed from \DDTools\FilesTools (with backward compatibility).