Releases: DivanDesign/EvolutionCMS.libraries.ddTools
Releases · DivanDesign/EvolutionCMS.libraries.ddTools
Version 0.67.1
Version 0.67
🇬🇧
- +
\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
🇬🇧
- +
\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
🇬🇧
- *
\DDTools\Storage\DB\Storage: Works fine even ifidcolumn is not present in the table.
🇷🇺
- *
\DDTools\Storage\DB\Storage: Работает корректно даже если колонкаidне существует в таблице.
Version 0.65.2
🇬🇧
- *
\DDTools\Storage\DB\Storage::items_add:$params->items[$itemIndex]->idis 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
- *
\DDTools\Base\AncestorTrait::getChildClassName: The public static method is no longer final. Now child classes can override this method.
Version 0.65
- +
\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
- *
\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
- +
\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\Storage→items_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).
- + There are now 2 levels of caching: stable (file-based) and quick (
Version 0.63
- +
\DDTools\Tools\Cache: The new class. Allows you to cache some data (e. g. a snippet result) to a file in theassets/cache/ddCachefolder (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).