Releases: DivanDesign/EvolutionCMS.libraries.ddTools
Releases · DivanDesign/EvolutionCMS.libraries.ddTools
Version 0.55.1
- *
\DDTools\FilesTools::modifyImage: Included PHP.libraries.phpThumb has been updated from 1.7.15-202004301145 to 1.7.19-202210110924 (now supports WebP, PHP8, etc).
Version 0.55
- +
\ddTools::convertUrlToAbsolute: The new public method. Converts relative URLs to absolute. See more info and examples in README.md. - * README: Various improvements.
Version 0.54
- +
\DDTools\BaseClass::setExistingProps→ Parameters →$props: Can also be set as a JSON, HJSON or Query formatted string. - * Included PHP.libraries.HJSON has been updated from 2.1 to 2.2.
- + README → Installation → Update using (MODX)EvolutionCMS.libraries.ddInstaller.
Version 0.53
- +
\DDTools\ObjectCollection: The new class representing a collection of some objects or arrays. See more info and examples in README. - *
\ddTools::parseText→ Parameters →$params->data: A bug with multidimensional objects has been fixed. - * README:
- - Documentation: Useless header level has been removed.
- * Examples: Several missed characters have been added.
Version 0.52.1
- *
\ddTools::parseText: Fixed working when$params->datais a multidimensional object.
Version 0.52
- +
\DDTools\ObjectTools::unfold: The new method.
Converts a multidimensional array/object into an one-dimensional one joining the keys with$params->keySeparator.
For example, it can be helpful while using placeholders like[+size.width+].
See more info and examples in README.md.
Version 0.51
- +
\DDTools\ObjectTools::convertType: Added the ability to returnstringQueryFormated.
Version 0.50
- +
\DDTools\Response:- +
setMetaData: The new public method. Setter for$this->metaand$this->data. - +
setMeta→ Parameters:- +
$meta['success']: Is not required anymore and by default will be equal totrue. - +
$meta['code']: Is not required anymore and by default will be equal to200or400depending on$meta['success']. - +
$meta:- + Can also be set as stdClass, stringJsonObject, stringHjsonObject, stringQueryFormated.
- + Is not required anymore and by default will be equal to
['success' => true, 'code' => 200].
- +
- +
setMetaMessage: If$this->metais not set, it will be set with default values ofsuccessandcode.
- +
Version 0.49.1
- *
\DDTools\ObjectTools::extend: Improved deep cloning objects to arrays.
Version 0.49
- *
\ddTools::parseText:- + Parameters →
$params->data: Can also be set as JSON, HJSON or Query string. - *
\DDTools\ObjectTools::extendis used instead ofarray_merge.
- + Parameters →
- + README → Documentation → Parameters description →
\ddTools::parseText($params).